public void TestCorrectEventArgs() { OnlyEventArgsSuffixEventArgsRule rule = new OnlyEventArgsSuffixEventArgsRule(); Assertion.AssertNull(rule.Check(typeof(CorrectEventArgs))); Assertion.AssertNull(rule.Check(typeof(OtherClass))); Assertion.AssertNull(rule.Check(typeof(MyEventArgs))); }
public void TestIncorrectEventArgs() { OnlyEventArgsSuffixEventArgsRule rule = new OnlyEventArgsSuffixEventArgsRule(); Assertion.AssertNotNull(rule.Check(typeof(IncorrectEventArgs))); }