public void UnsupportedFilterTypesTest2(TestMethodRecord tmr) { using (SystemHookTestWrapper hook = new SystemHookTestWrapper(HookTypes.MouseLL)) { hook.FilterMessageWrapper(12345); tmr.RunTest(true, "Filter message succeeded on HookTypes.MouseLL."); } }
public void UnsupportedFilterTypesTest1(TestMethodRecord tmr) { HookTypes type = HookTypes.Hardware; tmr.WriteLine("If you implement the hook type HookTypes." + type + ", change the type parameter to continue testing this senario."); using (SystemHookTestWrapper hook = new SystemHookTestWrapper(HookTypes.MouseLL)) { tmr.RegisterException("An unimplemented hook type will cause an exception (filter message).", typeof(ManagedHooksException)); hook.FilterMessageWrapper(type, 12345); } }