Question 660
A test reports success even when a returned amount is off by one because it checks only that execution completed. A targeted trial still reproduces the original gap after the team attempted this change: Add explicit value and record-state assertions for the expected business outcome. Which repair directly addresses the remaining defect?
Explanation
Correct Answer
Add the missing expected-value checks and negative fixtures instead of testing only for lack of exceptions. This directly addresses the remaining defect for the requirement—A test reports success even when a returned amount is off by one because it checks only that execution completed. It restores the mechanism described here: test execution without assertions can miss incorrect results; assertions compare measured state against the rule.
Incorrect Answers
This correction is for the separate condition: A partner automatically promotes a payment add-on without retaining its test-run report or source revision. It would not directly restore the intended behavior in this situation: A test reports success even when a returned amount is off by one because it checks only that execution completed. Here, add the missing expected-value checks and negative fixtures instead of testing only for lack of exceptions, because test execution without assertions can miss incorrect results; assertions compare measured state against the rule.
This correction is for the separate condition: A shipping add-on needs regression tests for a codeunit's charge calculation after deployment. It would not directly restore the intended behavior in this situation: A test reports success even when a returned amount is off by one because it checks only that execution completed. Here, add the missing expected-value checks and negative fixtures instead of testing only for lack of exceptions, because test execution without assertions can miss incorrect results; assertions compare measured state against the rule.
This correction is for the separate condition: Two warehouse tests pass separately but fail together because one test leaves mutated records behind. It would not directly restore the intended behavior in this situation: A test reports success even when a returned amount is off by one because it checks only that execution completed. Here, add the missing expected-value checks and negative fixtures instead of testing only for lack of exceptions, because test execution without assertions can miss incorrect results; assertions compare measured state against the rule.





Microsoft Dynamics 365 Business Central Developer (MB-820) Practice Tests