示例#1
0
 public void ShouldBeCleanAfterResetWhenContainingCleanObject()
 {
     var l = new DirtiableList<IDirtiable>();
     l.Add(MakeDirtiable(false));
     l.Reset();
     Assert.IsTrue(l.IsClean());
 }
示例#2
0
        public void ShouldBeCleanAfterResetWhenEmpty()
        {
            var l = new DirtiableList <IDirtiable>();

            l.Reset();
            Assert.IsTrue(l.IsClean());
        }
示例#3
0
        public void ShouldBeCleanAfterResetWhenContainingCleanObject()
        {
            var l = new DirtiableList <IDirtiable>();

            l.Add(MakeDirtiable(false));
            l.Reset();
            Assert.IsTrue(l.IsClean());
        }
示例#4
0
        public void ShouldBeDirtyAfterInsertingObject()
        {
            var l = new DirtiableList<IDirtiable>();
            l.Reset();

            l.Add(MakeDirtiable(false));
            Assert.IsFalse(l.IsClean());
        }
示例#5
0
        public void ShouldBeDirtyAfterInsertingObject()
        {
            var l = new DirtiableList <IDirtiable>();

            l.Reset();

            l.Add(MakeDirtiable(false));
            Assert.IsFalse(l.IsClean());
        }
示例#6
0
        public void ShouldBeDirtyAfterResetWhenContainingDirtyObject()
        {
            var l = new DirtiableList<IDirtiable>();
            l.Reset();

            l.Add(MakeDirtiable(true));
            l.Reset();

            Assert.IsFalse(l.IsClean(), "should always be dirty when containing a dirty object");
        }
示例#7
0
        public void ShouldBeDirtyAfterResetWhenContainingDirtyObject()
        {
            var l = new DirtiableList <IDirtiable>();

            l.Reset();

            l.Add(MakeDirtiable(true));
            l.Reset();

            Assert.IsFalse(l.IsClean(), "should always be dirty when containing a dirty object");
        }
示例#8
0
        public void ShouldBeDirtyAfterInstantiation()
        {
            var l = new DirtiableList <IDirtiable>();

            Assert.IsFalse(l.IsClean());
        }
示例#9
0
 public void ShouldBeDirtyAfterInstantiation()
 {
     var l = new DirtiableList<IDirtiable>();
     Assert.IsFalse(l.IsClean());
 }
示例#10
0
 public void ShouldBeCleanAfterResetWhenEmpty()
 {
     var l = new DirtiableList<IDirtiable>();
     l.Reset();
     Assert.IsTrue(l.IsClean());
 }