public void ConsoleViewInputIsPublicEvent() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertEvent( typeof(ConsoleView).GetEvent("Input"), new MemberAccessLevelVerifier(AccessLevels.Public), new EventHandlerTypeVerifier(typeof(InputHandler))); test.Execute(); }
public void BankAccountHighBalanceMinEvent() { // TestTools Code StructureTest test = Factory.CreateStructureTest(); test.AssertEvent( typeof(BankAccount).GetEvent("HighBalance"), new MemberAccessLevelVerifier(AccessLevels.Public), new EventHandlerTypeVerifier(typeof(BalanceChangeHandler))); test.Execute(); }