c++ - Help with Unit Testing -


I'm new to unit testing, can someone tell me where the test class is defined in the following code and I How can I find it?

  #ifndef UT_USERSESSIONMANAGER_ #def UT_USERSESSIONMANAGER_ # contains & lt; Gmock / gmock-genral.h & gt; // If this is defined in, how can I get it # include & lt; "Pre_include.hpp" & gt; // I'm sure it is not included in # include & lt; "Pre_usersession.hpp" & gt; // I'm sure that this name is not previously defined; Class Ut_UserSessionManager: public :: testing :: test {public: Pre_UserSessionManager * UserSessionFailure; Pre_UserSessionManager * UserSessionSuccess; Public: Virtual Zero Setup (); Virtual Zero TierDown (); } 

If this code is already compiled and links and you use Visual Studio Then you may want to switch to the creation of the browse information when the build has placed its cursor over the symbol in the symbol and pressed the F12 key.

But maybe this is not easy ...

Usually you will get the announcement in header files and source files (* .cpp) or definition (= implementation) or In libraries (note that this is just a general statement and is more like this when using the template). Therefore, if the compiler complains, make sure that you include the correct header files, if the linker complains that you have added the correct libraries.

You can get a useful tool (Source Source @ SourceForge) for joining and / or marking your C ++ source code. Sometimes it may be challenging to track this type of information in C ++. Of course this tool is a little late but it can still be helpful.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -