コード例 #1
0
        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);
        }
コード例 #2
0
        public void TestFailMessageTest()
        {
            FailException exception = new FailException("Attribute Exception Messsage");

            Assert.AreEqual(exception.Message, "Attribute Exception Messsage");
        }
コード例 #3
0
        public void TestFailDefaultTest()
        {
            FailException exception = new FailException();

            Assert.AreEqual(exception.Message, "Exception of type 'WebTestSuite.Exceptions.FailException' was thrown.");
        }