7
votes
Accepted
Why are sealed classes not allowed to be mocked?
Mocking a class usually works by using reflection to construct a subclass which has methods and properties that do nothing (or whatever is required for the mock).
"Sealed" classes cannot be ...
1
vote
How to write my own unit test?
You can use this header file:
https://github.com/xiaochun888/CppUnitTestExpress
It is easy to be integrated or extended into your application, your example will be possible to write here:
#include &...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
unit-testing × 1755testing × 463
tdd × 345
c# × 186
integration-tests × 145
mocking × 135
java × 113
design × 87
python × 66
c++ × 59
object-oriented × 53
dependency-injection × 52
.net × 50
javascript × 48
programming-practices × 47
php × 45
refactoring × 42
continuous-integration × 42
design-patterns × 38
test-coverage × 36
bdd × 35
database × 28
integration-testing × 28
architecture × 27
code-quality × 24