Example #1
0
        public void TestToString()
        {
            var collection = new LanguageSet {
                "en-US", "de"
            };

            collection.ToString().Should().Be("de en_US");
        }
Example #2
0
        public void TestDuplicateDetection()
        {
            var collection = new LanguageSet("en_US");

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