예제 #1
0
        public void Enumerator_EmptyCollection_CountIs0()
        {
            var collection = new ProjectFileNodeCollection <Folder>(new Project());
            var act        = collection.ToList();

            Assert.AreEqual(0, act.Count);
        }
예제 #2
0
        public void Add_1Item_CountIs1()
        {
            var act = new ProjectFileNodeCollection <Folder>(new Project());
            var exp = "SomeFolder";

            Assert.AreEqual(0, act.Count, "There should be no items before adding a folder.");

            act.Add(new Folder(exp));

            Assert.AreEqual(1, act.Count, "There should be one item after adding a folder.");
            Assert.AreEqual(exp, act[0].Include);
        }