public void TestAllMyCustomExceptionsSuccessfull()
        {
            IList <ResultMessage> result = ExceptionTester.TestAllExceptions(Assembly.GetAssembly(typeof(TestException)));

            Assert.That(result.Count, Is.EqualTo(12));
        }
 public void ShouldThrowExceptionWhenNotAllExceptionsAreTestedSuccesfully()
 {
     Assert.Throws <AutoTestException>(() => ExceptionTester.TestAllExceptions(Assembly.GetAssembly(typeof(CorrectException))));
 }
Пример #3
0
        public void ShouldTestAllExceptionsInAutoTestExceptions()
        {
            IList <ResultMessage> result = ExceptionTester.TestAllExceptions(Assembly.GetAssembly(typeof(ExceptionTester)));

            Assert.That(result, Has.Count.EqualTo(4));
        }