mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 09:48:26 -04:00
Restructured folders and project names, ci should be fixed
This commit is contained in:
25
src/NadekoBot.Tests/Random.cs
Normal file
25
src/NadekoBot.Tests/Random.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Text;
|
||||
using NadekoBot.Common.Yml;
|
||||
using NUnit.Framework;
|
||||
|
||||
namespace Nadeko.Tests
|
||||
{
|
||||
public class RandomTests
|
||||
{
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
Console.OutputEncoding = Encoding.UTF8;
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Utf8CodepointsToEmoji()
|
||||
{
|
||||
var point = @"0001F338";
|
||||
var hopefullyEmoji = YamlHelper.UnescapeUnicodeCodePoint(point);
|
||||
|
||||
Assert.AreEqual("🌸", hopefullyEmoji, hopefullyEmoji);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user