Files
nadekobot/src/NadekoBot.Tests/Random.cs

23 lines
521 B
C#

using System;
using System.Text;
using NadekoBot.Common.Yml;
using NUnit.Framework;
namespace NadekoBot.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);
}
}
}