示例#1
0
        public void It_Should_Not_Insert_Smiling_If_Name_Split_In_To_Multiple_Words()
        {
            var result = EmojiPlugin.InsertEmoji("hello world :Smil ing:");

            Assert.AreEqual("hello world :Smil ing:", result);
        }
示例#2
0
        public void It_Inserts_Smiling_And_Hibiscus()
        {
            var result = EmojiPlugin.InsertEmoji("hello world :Smiling::Hibiscus:");

            Assert.AreEqual("hello world ☺🌺", result);
        }
示例#3
0
        public void It_Inserts_Hibiscus_And_Smiling_At_The_Specified_Locations()
        {
            var result = EmojiPlugin.InsertEmoji(":Hibiscus:hello world :Smiling:");

            Assert.AreEqual("🌺hello world ☺", result);
        }
示例#4
0
        public void It_Should_Insert_Nothing_If_There_Are_Only_Colons()
        {
            var result = EmojiPlugin.InsertEmoji("hello world ::");

            Assert.AreEqual("hello world ", result);
        }
示例#5
0
        public void It_Should_Drop_The_Smiley_Tag_Since_There_Is_No_Smiley_Available()
        {
            var result = EmojiPlugin.InsertEmoji("hello world :Smiley:");

            Assert.AreEqual("hello world ", result);
        }
示例#6
0
        public void It_Should_Not_Insert_Smiling_When_Right_Colon_Missing()
        {
            var result = EmojiPlugin.InsertEmoji("hello world :Smiling");

            Assert.AreEqual("hello world :Smiling", result);
        }
示例#7
0
        public void It_Still_Inserts_Smiling_When_Lower_Case()
        {
            var result = EmojiPlugin.InsertEmoji("hello world :smiling:");

            Assert.AreEqual("hello world ☺", result);
        }
示例#8
0
        public void It_inserts_Smiling()
        {
            var result = EmojiPlugin.InsertEmoji("hello world :Smiling:");

            Assert.AreEqual("hello world ☺", result);
        }