public void testNestException_shouldAcceptAThrowable() { var t = new Exception(); var e = new NestException(t); Assert.AreSame(t, e.InnerException); }
public void testNestException_shouldAcceptAMessage() { string testMessage = "test-message"; var e = new NestException(testMessage); Assert.AreEqual(testMessage, e.Message); }
public void testNestException_shouldAcceptAMessageAndThrowable() { string testMessage = "test-message-2"; var t = new Exception(); var e = new NestException(testMessage, t); Assert.AreEqual(testMessage, e.Message); Assert.AreSame(t, e.InnerException); }
public void testNestException_shouldAcceptNothing() { var e = new NestException(); Assert.IsTrue(string.IsNullOrEmpty(e.Message)); }
public void onFailure(NestException exception) { this.exception = exception; }