public void Delete_Should_Set_IsDeleted()
 {
     var expected = true;
     var aspect = new LabelAspect();
     Assert.False(aspect.IsDeleted);
     aspect.Delete();
     Assert.Equal(expected, aspect.IsDeleted);
 }
示例#2
0
        public void Delete_Should_Set_IsDeleted()
        {
            var expected = true;
            var aspect   = new LabelAspect();

            Assert.False(aspect.IsDeleted);
            aspect.Delete();
            Assert.Equal(expected, aspect.IsDeleted);
        }
 public void Delete_Should_Notify_Deleted_Event()
 {
     var expected = true;
     var notified = false;
     var aspect = new LabelAspect();
     aspect.Deleted += (s, args) => notified = true;
     aspect.Delete();
     Assert.Equal(expected, notified);
 }
示例#4
0
        public void Delete_Should_Notify_Deleted_Event()
        {
            var expected = true;
            var notified = false;
            var aspect   = new LabelAspect();

            aspect.Deleted += (s, args) => notified = true;
            aspect.Delete();
            Assert.Equal(expected, notified);
        }