23 lines
No EOL
551 B
C#
23 lines
No EOL
551 B
C#
using System;
|
|
using System.Text;
|
|
using EllieBot.Common.Yml;
|
|
using NUnit.Framework;
|
|
|
|
namespace EllieBot.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.That("🌸", Is.EqualTo(hopefullyEmoji), "Yaml unescape doesn't work properly.");
|
|
}
|
|
}
|
|
} |