public void TestMissMatchPremessageTest() { Exception innerException = new Exception("Inner exception"); MissMatchException exception = new MissMatchException("first", "second", "Items did not match"); Assert.AreEqual(exception.Message, "Items did not match" + " - Expected: \"" + "first" + "\", Actual: \"" + "second" + "\""); }
public void TestMissMatchInnerExceptionTest() { Exception innerException = new Exception("Inner exception"); MissMatchException exception = new MissMatchException("MissMatch Exception Messsage", innerException); Assert.AreEqual(exception.Message, "MissMatch Exception Messsage"); Assert.AreEqual(exception.InnerException, innerException); }
public void TestMissMatchMessageTest() { MissMatchException exception = new MissMatchException("MissMatch Exception Messsage"); Assert.AreEqual(exception.Message, "MissMatch Exception Messsage"); }
public void TestMissMatchDefaultTest() { MissMatchException exception = new MissMatchException(); Assert.AreEqual(exception.Message, "Exception of type 'WebTestSuite.Exceptions.MissMatchException' was thrown."); }
public void TestMissMatchObjectTest() { MissMatchException exception = new MissMatchException("first", "second"); Assert.AreEqual(exception.Message, "Expected: \"" + "first" + "\", Actual: \"" + "second" + "\""); }