Пример #1
0
        public void TestToString()
        {
            var collection = new LanguageSet {
                "en-US", "de"
            };

            collection.ToString().Should().Be("de en_US");
        }
Пример #2
0
        public void TestDuplicateDetection()
        {
            var collection = new LanguageSet("en_US");

            collection.Add("en-US").Should().BeFalse();
            collection.Should().BeEquivalentTo(new LanguageSet {
                "en-US"
            });
        }