Ejemplo n.º 1
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);
 }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 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);
        }