The because is a tool that the engine uses to come to the correct conclusions.
The because is a tool that the engine uses to come to the correct conclusions. A good because function should have no sideeffects and execute quickly
An optional description
An optional description
The expected output for the test.
The expected output for the test. The test is mostly saying 'if I pass the engine these parameters, then I expect this result
The code for the scenario.
The code for the scenario. This is optional as if the result is 'the expected' then the code is redundant
The inputs for the test.
The inputs for the test. The test is mostly saying 'if I pass the engine these parameters, then I expect this result
The 'priority' that is used to determine the order that the decision trees are being built
The 'priority' that is used to determine the order that the decision trees are being built
this will appear on reports as a title for that requirement
this will appear on reports as a title for that requirement
If you want to display the because, this returns the description or an empty string if none is defined
the title or if undefined the description or if undefined the default
the title or if undefined the description or if undefined the default
the title or an empty string
the title or an empty string
This is a full 'test + optional reason why + optional code to implement the behaviour that will make the test past