Tester¶
Testing ยป Instruction Tester
Description¶
Appends a character to a static Chain field. For internal testing use only
Parameters¶
| Name | Description |
|---|---|
| Character | A character that will be appended to InstructionTester.Chain |
Example 1¶
Note that this Instruction is not accessible through the Inspector to avoid confusing new users. To run the test suit environment, create a new InstructionList object and append as many InstructionTester instances as your test requires.
InstructionList instructions = new InstructionList(
new InstructionTester('a'),
new InstructionTester('b'),
new InstructionTester('c')
);
InstructionTester.Clear();
instructions.Run(null);
Debug.Log(InstructionTester.Chain);
// Prints: 'abc'