Table of Contents

Class HegelTestDiscoverer

Namespace
Hegel.Xunit
Assembly
Hegel.Xunit.dll

Finds the test case of a HegelTestAttribute method for xUnit, named by the attribute's Xunit.Sdk.XunitTestCaseDiscovererAttribute; not called directly.

public sealed class HegelTestDiscoverer : IXunitTestCaseDiscoverer
Inheritance
HegelTestDiscoverer
Implements
IXunitTestCaseDiscoverer
Inherited Members

Constructors

HegelTestDiscoverer(IMessageSink)

Called by xUnit.

public HegelTestDiscoverer(IMessageSink diagnosticMessageSink)

Parameters

diagnosticMessageSink IMessageSink

Methods

Discover(ITestFrameworkDiscoveryOptions, ITestMethod, IAttributeInfo)

Discover test cases from a test method.

public IEnumerable<IXunitTestCase> Discover(ITestFrameworkDiscoveryOptions discoveryOptions, ITestMethod testMethod, IAttributeInfo factAttribute)

Parameters

discoveryOptions ITestFrameworkDiscoveryOptions

The discovery options to be used.

testMethod ITestMethod

The test method the test cases belong to.

factAttribute IAttributeInfo

The fact attribute attached to the test method.

Returns

IEnumerable<IXunitTestCase>

Returns zero or more test cases represented by the test method.