Пример #1
0
 public void ShouldBeCleanAfterResetWhenContainingCleanObject()
 {
     var l = new DirtiableList<IDirtiable>();
     l.Add(MakeDirtiable(false));
     l.Reset();
     Assert.IsTrue(l.IsClean());
 }
Пример #2
0
        public void ShouldBeCleanAfterResetWhenContainingCleanObject()
        {
            var l = new DirtiableList <IDirtiable>();

            l.Add(MakeDirtiable(false));
            l.Reset();
            Assert.IsTrue(l.IsClean());
        }
Пример #3
0
        public void ShouldBeDirtyAfterInsertingObject()
        {
            var l = new DirtiableList<IDirtiable>();
            l.Reset();

            l.Add(MakeDirtiable(false));
            Assert.IsFalse(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 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");
        }
Пример #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");
        }