Skip to content

InstructionTestSuite<TTestCase>.GetTestCases Method

Overloads

Name Description
GetTestCases() Gets all the test cases using the DefaultOptions.
GetTestCases(TestAssertions) Gets all the test cases, overriding the AssertionsToRun on the DefaultOptions.
GetTestCases(IReadOnlyDictionary<String, TestAssertions>) Gets all the test cases, overriding the AssertionsToRun on the DefaultOptions for specific tests.
GetTestCases(TestAssertions, IReadOnlyDictionary<String, TestAssertions>) Gets all the test cases, overriding the AssertionsToRun on the DefaultOptions for all tests along with overrides for specific tests.
GetTestCases(InstructionTestSuiteOptions) Gets all the test cases using the specified InstructionTestSuiteOptions.

GetTestCases()

Gets all the test cases using the DefaultOptions.

public IEnumerable<TTestCase> GetTestCases();

View source

Returns

IEnumerable<TTestCase>

A sequence of test cases.

GetTestCases(TestAssertions)

Gets all the test cases, overriding the AssertionsToRun on the DefaultOptions.

public IEnumerable<TTestCase> GetTestCases(TestAssertions assertionsToRun);

View source

Parameters

Name Type Description
assertionsToRun TestAssertions

Returns

IEnumerable<TTestCase>

A sequence of test cases.

GetTestCases(IReadOnlyDictionary<String, TestAssertions>)

Gets all the test cases, overriding the AssertionsToRun on the DefaultOptions for specific tests.

public IEnumerable<TTestCase> GetTestCases(IReadOnlyDictionary<string, TestAssertions> assertionsToRunOverrides);

View source

Parameters

Name Type Description
assertionsToRunOverrides IReadOnlyDictionary<String, TestAssertions>

Returns

IEnumerable<TTestCase>

A sequence of test cases.

GetTestCases(TestAssertions, IReadOnlyDictionary<String, TestAssertions>)

Gets all the test cases, overriding the AssertionsToRun on the DefaultOptions for all tests along with overrides for specific tests.

public IEnumerable<TTestCase> GetTestCases(TestAssertions assertionsToRun, IReadOnlyDictionary<string, TestAssertions> assertionsToRunOverrides);

View source

Parameters

Name Type Description
assertionsToRun TestAssertions
assertionsToRunOverrides IReadOnlyDictionary<String, TestAssertions>

Returns

IEnumerable<TTestCase>

A sequence of test cases.

GetTestCases(InstructionTestSuiteOptions)

Gets all the test cases using the specified InstructionTestSuiteOptions.

public abstract IEnumerable<TTestCase> GetTestCases(InstructionTestSuiteOptions options);

Parameters

Name Type Description
options InstructionTestSuiteOptions

Returns

IEnumerable<TTestCase>

A sequence of test cases.