Method NotRaisedAny
- Namespace
- Xunit
- Assembly
- xunit.v3.assert.dll
NotRaisedAny(Action<Action>, Action<Action>, Action)
Verifies that an event is not raised.
public static void NotRaisedAny(Action<Action> attach, Action<Action> detach, Action testCode)
Parameters
attachAction<Action>Code to attach the event handler
detachAction<Action>Code to detach the event handler
testCodeActionA delegate to the code to be tested
Exceptions
Thrown when an unexpected event was raised.
NotRaisedAny<T>(Action<Action<T>>, Action<Action<T>>, Action)
Verifies that an event with the exact or a derived event args is not raised.
public static void NotRaisedAny<T>(Action<Action<T>> attach, Action<Action<T>> detach, Action testCode)
Parameters
attachAction<Action<T>>Code to attach the event handler
detachAction<Action<T>>Code to detach the event handler
testCodeActionA delegate to the code to be tested
Type Parameters
TThe type of the event arguments to expect
Exceptions
Thrown when an unexpected event was raised.
NotRaisedAny<T>(Action<EventHandler<T>>, Action<EventHandler<T>>, Action)
Verifies that an event with the exact or a derived event args is not raised.
public static void NotRaisedAny<T>(Action<EventHandler<T>> attach, Action<EventHandler<T>> detach, Action testCode)
Parameters
attachAction<EventHandler<T>>Code to attach the event handler
detachAction<EventHandler<T>>Code to detach the event handler
testCodeActionA delegate to the code to be tested
Type Parameters
TThe type of the event arguments to expect
Exceptions
Thrown when an unexpected event was raised.