Decision result assertions
After you create an PegaUnit test case for a when rule, decision table, or decision tree, the system generates a decision result assertion with the input combinations that you specified when creating an test case as well as the result used to run the rule. You can add and modify input combinations as needed.
For example, you can verify that:
- A discount of 5% is applied if sales are greater than $10 000
- A discount of 10% is applied if sales are greater than $20 000
- A discount of 2% is applied otherwise.