Exemple #1
0
        public void TestSuiteException()
        {
            ExceptionTest test = new ExceptionTest();

            test.Execute();
            Assert.IsTrue(test.TestResult.Executed);
            Assert.IsFalse(test.TestResult.Succeeded);
            ExceptionTest test2 = new ExceptionTest();

            try
            {
                test2.BreakOnFail = true;
                test2.Execute();
            }
            catch (Exception e)
            {
                return;
            }
            Assert.IsTrue(false);
        }