Skip to content

ProgramTestCase.Execute Method ​

Overloads ​

NameDescription
Execute<TTestHarness>(TextWriter)Executes the test case with the specified test output.
Execute<TTestHarness>(TextWriter, TextWriter)Executes the test case with the specified test and debug output. Execution will proceed step by step if TTestHarness is a Z80SteppableTestHarness, or instruction by instruction otherwise.
Execute(Z80TestHarness, TextWriter, TextWriter)Executes the test case with the specified test and debug output. Execution will proceed instruction by instruction.
Execute(Z80SteppableTestHarness, TextWriter)Executes the test case with the specified test and debug output. Execution will proceed step by step.

Execute<TTestHarness>(TextWriter) ​

Executes the test case with the specified test output.

c#
public sealed override void Execute<TTestHarness>(TextWriter? testOutput = null)
   where TTestHarness : Z80TestHarness, new();

View source

Type Parameters ​

NameDescription
TTestHarnessThe type of Z80TestHarness to use.

Parameters ​

NameTypeDescription
testOutputTextWriterOptional writer for test output. This will be the output from the test program.

Execute<TTestHarness>(TextWriter, TextWriter) ​

Executes the test case with the specified test and debug output. Execution will proceed step by step if TTestHarness is a Z80SteppableTestHarness, or instruction by instruction otherwise.

c#
public new void Execute<TTestHarness>(TextWriter? testOutput, TextWriter? debugOutput)
   where TTestHarness : Z80TestHarness, new();

View source

Type Parameters ​

NameDescription
TTestHarnessThe type of Z80TestHarness to use.

Parameters ​

NameTypeDescription
testOutputTextWriterOptional writer for test output. This will be the output from the test program.
debugOutputTextWriterOptional writer for debug output. This will be the state of the emulator before each instruction. Only used for instruction by instruction execution.

Execute(Z80TestHarness, TextWriter, TextWriter) ​

Executes the test case with the specified test and debug output. Execution will proceed instruction by instruction.

c#
public new void Execute(Z80TestHarness z80, TextWriter? testOutput = null, TextWriter? debugOutput = null);

View source

Parameters ​

NameTypeDescription
z80Z80TestHarnessThe test harness to use.
testOutputTextWriterOptional writer for test output. This will be the output from the test program.
debugOutputTextWriterOptional writer for debug output. This will be the state of the emulator before each instruction.

Execute(Z80SteppableTestHarness, TextWriter) ​

Executes the test case with the specified test and debug output. Execution will proceed step by step.

c#
public new void Execute(Z80SteppableTestHarness z80, TextWriter? testOutput = null);

View source

Parameters ​

NameTypeDescription
z80Z80SteppableTestHarnessThe steppable test harness to use.
testOutputTextWriterOptional writer for test output. This will be the output from the test program.