Beispiel #1
0
        public void SettingItemsInTheConstructor()
        {
            var toAdd = new List <string>
            {
                "Foo",
                "Bar"
            };

            var v = new ListItemInnerCollection <string>("Hello", toAdd);

            v.Title.Should().Be("Hello");

            v.Should().ContainInOrder(toAdd);
            v.Should().OnlyContain(s => toAdd.Contains(s));
            v.Count.Should().Be(2);
        }
Beispiel #2
0
        public void TitlSetter()
        {
            var v = new ListItemInnerCollection <string>("Hello");

            v.Title.Should().Be("Hello");
        }