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))));
 }
Esempio n. 3
0
        public void ShouldTestAllExceptionsInAutoTestExceptions()
        {
            IList <ResultMessage> result = ExceptionTester.TestAllExceptions(Assembly.GetAssembly(typeof(ExceptionTester)));

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