예제 #1
0
        public void Case_Of_The_Country_Name_Does_Not_Matter()
        {
            var one   = EmojiFlag.Create("nl");
            var other = EmojiFlag.Create("NL");

            one.Should().Be(other);
        }
예제 #2
0
        public void Create_Emoji_Flag_From_LCID()
        {
            var sut = EmojiFlag.Create(1043);

            sut.ToString().Should().Be("🇳🇱");
        }
예제 #3
0
        public void Create_Emoji_Flag_From_CultureInfo()
        {
            var sut = EmojiFlag.Create(new CultureInfo(1043));

            sut.ToString().Should().Be("🇳🇱");
        }
예제 #4
0
        public void Print_The_Emoji_Flag_For_The_Netherlands()
        {
            var sut = EmojiFlag.Create("NL");

            sut.ToString().Should().Be("🇳🇱");
        }
예제 #5
0
        public void When_Country_Is_More_Than_Two_Characters_Throw_FormatException()
        {
            Action action = () => EmojiFlag.Create("abc");

            action.Should().Throw <ArgumentOutOfRangeException>();
        }
예제 #6
0
 public void Null_Flag_Can_Be_Created()
 {
     EmojiFlag.Create((string)null).Should().BeNull();
 }