Method SetForInitialization
- Namespace
- Xunit
- Assembly
- xunit.v3.core.dll
SetForInitialization(IMessageSink?, bool, bool)
Sets the test context for test framework initialization. This is the moment before any specific assembly is being discovered or run. This is typically used by custom runners just before they create the test framework via a call to GetTestFramework(Assembly).
public static void SetForInitialization(IMessageSink? diagnosticMessageSink, bool diagnosticMessages, bool internalDiagnosticMessages)
Parameters
diagnosticMessageSink
The optional message sink used to receive IDiagnosticMessage and IInternalDiagnosticMessage instances.
diagnosticMessages
boolA flag to indicate whether the user wants to receive diagnostic messages
internalDiagnosticMessages
boolA flag to indicate whether the user wants to receive internal diagnostic messages