7 votes

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 ...
pjc50's user avatar
  • 12.5k
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 &...
Eric ZHONG's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible