Class CrashDetectionExecutionSink
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.runner.utility.netfx.dll
An implementation of IMessageSink that detects when test assembly starting and finished messages have been sent, and will send cleanup/error messages to the inner sink if it appears that the test process crashed (failed to send one or both messages).
public class CrashDetectionExecutionSink : CrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>, IMessageSink
- Inheritance
-
CrashDetectionExecutionSink
- Implements
- Inherited Members
-
CrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.FinishCrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.FinishWaitMillisecondsCrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.InnerSinkCrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.ProjectAssemblyCrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.StartCrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.OnMessage(IMessageSinkMessage)CrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.OnProcessFinished(int?)CrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.SendFinish(string)CrashDetectionSinkBase<ITestAssemblyStarting, ITestAssemblyFinished>.SendStart(string)
Constructors
- CrashDetectionExecutionSink(XunitProjectAssembly, IMessageSink)
An implementation of IMessageSink that detects when test assembly starting and finished messages have been sent, and will send cleanup/error messages to the inner sink if it appears that the test process crashed (failed to send one or both messages).
Properties
- UtcNow
Override this to set a constant time for testing purposes.
Methods
- SendFinish(string)
Implement this to send the finished message.
- SendStart(string)
Implement this to send the starting message.