Recently I have implemented a complete class with its own member methods as well non-member methods related to that class in Visual C++ 2015. I have written unit tests (C++ Unit Test) for that class, but the problem I am countering now is how can I check for memory leaks when executing the unit tests?
I have heard a lot of different alternatives to do this, but these alternatives commonly are only to test a Concrete implementation, like a main routine or something like that. That is the impression I have gained after Reading several articles about performing memory leak detection in Visual C++. In this case, I would like to check for memory leaks among the unit tests I have written, so what is the most "comfortable" way to do this?