Skip to content

InstructionTestSuite<TTestCase>.GetTestCases Method ​

Overloads ​

NameDescription
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.

c#
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.

c#
public IEnumerable<TTestCase> GetTestCases(TestAssertions assertionsToRun);

View source

Parameters ​

NameTypeDescription
assertionsToRunTestAssertions

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.

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

View source

Parameters ​

NameTypeDescription
assertionsToRunOverridesIReadOnlyDictionary<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.

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

View source

Parameters ​

NameTypeDescription
assertionsToRunTestAssertions
assertionsToRunOverridesIReadOnlyDictionary<String, TestAssertions>

Returns ​

IEnumerable<TTestCase>

A sequence of test cases.

GetTestCases(InstructionTestSuiteOptions) ​

Gets all the test cases using the specified InstructionTestSuiteOptions.

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

Parameters ​

NameTypeDescription
optionsInstructionTestSuiteOptions

Returns ​

IEnumerable<TTestCase>

A sequence of test cases.