public void AspectedMethodThatDoesNotCompleteWithinTimeoutThrowsAnException() { // Arrange var testClass = new TimeoutAttributeTestClass(); // Act var result = testClass.AspectedMethod(2000); // Assert handled by the ExpectedException attribute... this should never be hit. Assert.Fail(); }
public void AspectedMethodThatCompletesWithinTimeoutDoesNotThrowException() { // Arrange var testClass = new TimeoutAttributeTestClass(); // Act var result = testClass.AspectedMethod(500); // Assert Assert.IsTrue(result); }