Example #1
0
 public void Emoji_()
 {
     WriteLine(Emoji.Get(":tada:").Raw);                // 🎉
     WriteLine(Emoji.Raw(":tada:"));                    // 🎉
     WriteLine(Emoji.Emojify(":tada: initial commit")); // 🎉 initial commit
     WriteLine(Emoji.Find("party popper").First().Raw); // 🎉
 }
Example #2
0
        public void Raw_should_return_the_emoji_character()
        {
            Emoji.Raw(":grinning:").Should().Be("😀");
            Emoji.Raw(":blonde_woman:").Should().Be("👱‍♀️");
            Emoji.Raw(":fail:").Should().BeEmpty();

            // Regressions
            Emoji.Raw(":beetle:").Should().NotBe("🐞");
            Emoji.Raw(":man_in_tuxedo:").Should().NotBe("🤵");
            Emoji.Raw(":bride_with_veil:").Should().NotBe("👰");

            Action act = () => Emoji.Raw(NullString);

            act.Should().Throw <ArgumentNullException>();
        }
Example #3
0
 public void string_interpolation()
 {
     $"Hello, {Emoji.Raw(":earth_africa:")}".Should().Be("Hello, 🌍");
     $"Hello, {Raw(":earth_africa:")}".Should().Be("Hello, 🌍");
 }
Example #4
0
 public void Raw_should_return_the_emoji_character()
 {
     Emoji.Raw(":grinning:").Should().Be("😀");
     Emoji.Raw(":blonde_woman:").Should().Be("👱‍♀️");
     Emoji.Raw(":fail:").Should().BeEmpty();
 }