Use the SampleTest unit test project to get started debugging a custom sequence project.

Each API in the custom indirect register sequence project has a respective test method in the unit test project. The unit test project includes the following test methods:

Table 28. Sequence Project Test Methods
Method Name Description
IndirectRegisterSequence_DefineNewSequence_Instantiate()
  • Tests if the indirect register sequence can be instantiated properly.
  • For testing purposes, create a mock for IRegisterOperation.
ValidIndirectRegisterSequence_ReadIndirectRegister_ReadsWithoutError() Tests if the direct register operations defined in the ReadIndirectRegister() API of the indirect register sequence work properly.
ValidIndirectRegisterSequence_WriteIndirectRegister_WritesWithoutError() Tests if the direct register operations defined in the WriteIndirectRegister() API of the indirect register sequence work properly.