Closed tdashworth closed 2 years ago
I am currently writing tests for our XrmToolbox plugin and I was looking to mock and verify calls to the engine.
Two options I identified were:
1) Extract an interface of all public properties/methods 2) Make the public methods virtual so they can be mocked
I've taken the first approach here.
Kudos, SonarCloud Quality Gate passed!
0 Bugs 0 Vulnerabilities 0 Security Hotspots 3 Code Smells
No Coverage information 0.0% Duplication
I am currently writing tests for our XrmToolbox plugin and I was looking to mock and verify calls to the engine.
Two options I identified were:
1) Extract an interface of all public properties/methods 2) Make the public methods virtual so they can be mocked
I've taken the first approach here.