public void TestSuiteFailInnerExceptionTest() { Exception innerException = new Exception("Inner exception"); SuiteFailException exception = new SuiteFailException("SuiteFail Exception Messsage", innerException); Assert.AreEqual(exception.Message, "SuiteFail Exception Messsage"); Assert.AreEqual(exception.InnerException, innerException); }
public void TestSuiteFailMessageTest() { SuiteFailException exception = new SuiteFailException("SuiteFail Exception Messsage"); Assert.AreEqual(exception.Message, "SuiteFail Exception Messsage"); }
public void TestSuiteFailDefaultTest() { SuiteFailException exception = new SuiteFailException(); Assert.AreEqual(exception.Message, "Exception of type 'WebTestSuite.Exceptions.SuiteFailException' was thrown."); }