private void OnHandlerConsoleEvent(Object sender, ConsoleHandlerEventArgs args) { this.cancellation.Cancel(); }
public void ConsoleHandlerEventArgs_ApplyTypes_TypesAppliedAsExpected(Int32 type) { ConsoleHandlerEventArgs instance = new ConsoleHandlerEventArgs((ConsoleEventType)type); Assert.That(instance.Type, Is.EqualTo((ConsoleEventType)type)); }