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_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); }
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); }