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

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

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

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