Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        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();
        }