Beispiel #1
0
        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);
        }
Beispiel #2
0
 public void DisposeTheTestObject()
 {
     var testObject = new TaskSetupEngine(this.blogger, this.paths);
     testObject.Dispose();
     Assert.Throws<InvalidOperationException>(() => testObject.Dispose());
 }