public void Delete() { var testClass = new EmptyClass(); Assert.Throws<NotFoundException>(() => testClass.Delete()); testClass.Save(); Assert.False(testClass.IsDeleted()); testClass.Delete(); Assert.True(testClass.IsDeleted()); Assert.Throws<NotFoundException>(() => testClass.Delete()); }
public void Delete() { var testClass = new EmptyClass(); Assert.Throws <NotFoundException>(() => testClass.Delete()); testClass.Save(); Assert.False(testClass.IsDeleted()); testClass.Delete(); Assert.True(testClass.IsDeleted()); Assert.Throws <NotFoundException>(() => testClass.Delete()); }