mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 17:28:27 -04:00
23 lines
521 B
C#
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);
|
|
}
|
|
}
|
|
} |