public void TestIncorrectException()
 {
     OnlyExceptionsSuffixExceptionRule rule = new OnlyExceptionsSuffixExceptionRule();
     Assertion.AssertNotNull(rule.Check(typeof(NotAnException)));
 }
 public void TestCorrectException()
 {
     OnlyExceptionsSuffixExceptionRule rule = new OnlyExceptionsSuffixExceptionRule();
     Assertion.AssertNull(rule.Check(typeof(MyException)));
     Assertion.AssertNull(rule.Check(typeof(OtherClass)));
 }