public void TestFailInnerExceptionTest() { Exception innerException = new Exception("Inner exception"); FailException exception = new FailException("Attribute Exception Messsage", innerException); Assert.AreEqual(exception.Message, "Attribute Exception Messsage"); Assert.AreEqual(exception.InnerException, innerException); }
public void TestFailMessageTest() { FailException exception = new FailException("Attribute Exception Messsage"); Assert.AreEqual(exception.Message, "Attribute Exception Messsage"); }
public void TestFailDefaultTest() { FailException exception = new FailException(); Assert.AreEqual(exception.Message, "Exception of type 'WebTestSuite.Exceptions.FailException' was thrown."); }