Table of Contents

Class HegelTestCase

Namespace
Hegel.Xunit
Assembly
Hegel.Xunit.dll

The xUnit test case of a HegelTestAttribute method: one test, whose body the engine runs. Created by HegelTestDiscoverer; not used directly.

public sealed class HegelTestCase : XunitTestCase, IDisposable, IXunitTestCase, ITestCase, IXunitSerializable
Inheritance
LongLivedMarshalByRefObject
TestMethodTestCase
XunitTestCase
HegelTestCase
Implements
IXunitTestCase
ITestCase
IXunitSerializable
Inherited Members
XunitTestCase.Serialize(IXunitSerializationInfo)
XunitTestCase.Deserialize(IXunitSerializationInfo)
XunitTestCase.Timeout
TestMethodTestCase.Dispose()
TestMethodTestCase.DisplayName
TestMethodTestCase.InitializationException
TestMethodTestCase.Method
TestMethodTestCase.SkipReason
TestMethodTestCase.SourceInformation
TestMethodTestCase.TestMethod
TestMethodTestCase.TestMethodArguments
TestMethodTestCase.Traits
TestMethodTestCase.UniqueID
LongLivedMarshalByRefObject.DisconnectAll()

Constructors

HegelTestCase(IMessageSink, TestMethodDisplay, TestMethodDisplayOptions, ITestMethod)

public HegelTestCase(IMessageSink diagnosticMessageSink, TestMethodDisplay defaultMethodDisplay, TestMethodDisplayOptions defaultMethodDisplayOptions, ITestMethod testMethod)

Parameters

diagnosticMessageSink IMessageSink
defaultMethodDisplay TestMethodDisplay
defaultMethodDisplayOptions TestMethodDisplayOptions
testMethod ITestMethod

Methods

RunAsync(IMessageSink, IMessageBus, object[], ExceptionAggregator, CancellationTokenSource)

Executes the test case, returning 0 or more result messages through the message sink.

public override Task<RunSummary> RunAsync(IMessageSink diagnosticMessageSink, IMessageBus messageBus, object[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)

Parameters

diagnosticMessageSink IMessageSink

The message sink used to send diagnostic messages to.

messageBus IMessageBus

The message bus to report results to.

constructorArguments object[]

The arguments to pass to the constructor.

aggregator ExceptionAggregator

The error aggregator to use for catching exception.

cancellationTokenSource CancellationTokenSource

The cancellation token source that indicates whether cancellation has been requested.

Returns

Task<RunSummary>

Returns the summary of the test case run.