public void DisposeTheTestObject() { var testObject = new TaskSetupEngine(this.blogger, this.paths); testObject.Dispose(); Assert.Throws <InvalidOperationException>(() => testObject.Dispose()); }
public void PropertyIsDisposed() { var testObject = new TaskSetupEngine(this.blogger, this.paths); var expected = false; var actual = testObject.IsDisposed; Assert.AreEqual(expected, actual); expected = true; testObject.Dispose(); actual = testObject.IsDisposed; Assert.AreEqual(expected, actual); }