Exemple #1
0
        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" + "\"");
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        public void TestMissMatchMessageTest()
        {
            MissMatchException exception = new MissMatchException("MissMatch Exception Messsage");

            Assert.AreEqual(exception.Message, "MissMatch Exception Messsage");
        }
Exemple #4
0
        public void TestMissMatchDefaultTest()
        {
            MissMatchException exception = new MissMatchException();

            Assert.AreEqual(exception.Message, "Exception of type 'WebTestSuite.Exceptions.MissMatchException' was thrown.");
        }
Exemple #5
0
        public void TestMissMatchObjectTest()
        {
            MissMatchException exception = new MissMatchException("first", "second");

            Assert.AreEqual(exception.Message, "Expected: \"" + "first" + "\", Actual: \"" + "second" + "\"");
        }