Skip to content
Lieven De Foor edited this page Aug 23, 2017 · 3 revisions

Examples

OEMock provides several example programs to help with using the tool.

The example files are held in the sub-directory 'Examples'.

Example Details

  • Example 1
    • This is a basic example showing how to use the Stub test double to stub a procedure file.
  • Example 2
    • This example shows how to use the Stub test double to stub an include file that is included inside of a procedure file that you wish to test.
  • Example 3
    • This example shows how to use the Stub test double to stub an class.
  • Example 4
    • This is a basic example showing how to use the Mock test double to mock a procedure file and set an expectation on the procedure in the file.
  • Example 5
    • This example shows how to use the Mock test double to Mock a class and to set an expectation on a method in that class.
Clone this wiki locally