Table of Contents

Class CrashDetectionDiscoverySink

Namespace
Xunit.v3
Assembly
xunit.v3.runner.utility.netfx.dll

An implementation of IMessageSink that detects when test discovery 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 CrashDetectionDiscoverySink : CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>, IMessageSink
Inheritance
CrashDetectionDiscoverySink
Implements
Inherited Members
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.Finish
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.FinishWaitMilliseconds
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.InnerSink
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.ProjectAssembly
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.Start
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.OnMessage(IMessageSinkMessage)
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.OnProcessFinished(int?)
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.SendFinish(string)
CrashDetectionSinkBase<IDiscoveryStarting, IDiscoveryComplete>.SendStart(string)

Constructors

CrashDetectionDiscoverySink(XunitProjectAssembly, IMessageSink)

An implementation of IMessageSink that detects when test discovery 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).

Methods

SendFinish(string)

Implement this to send the finished message.

SendStart(string)

Implement this to send the starting message.