Exemplo n.º 1
0
        public void WhenAddThenGettableTest()
        {
            const string expectedItem1 = "a.b.c.d";
            const string expectedItem2 = "e.f.g.h";

//            var substUtil = Substitute.For<IUtil>();
//            substUtil.WriteToFile(Arg.Any<string>(), Arg.Any<string>(), false).Returns(true);

            ContentList contentList = new ContentList();

            contentList.IsSubList = false;
            contentList.Name      = "testlist";
            contentList.Version   = "1";

            contentList.Add(expectedItem1);
            contentList.Add(expectedItem2);

            Assert.Equal(expectedItem1, contentList.Get(0));
            Assert.Equal(expectedItem2, contentList.Get(1));
        }