|
-
February 8th, 2013, 09:39 AM
#1
How to create dummy object of legacy code in Unit Test project?
Hi,
I am working on legacy c++ project,they have no unit test cases so i am planning to write unit test(CPPUNIT) case wherever i touch the code in that huge project...
I am new to cppunit, my question here is suppose i have a originally written function, internally that function creates a object of another class and call the member function of that class then get some data, then actual logic....
In this kind of situation in my new Unit test project, how to write unit test case? how create mock object of that class?
Or please reply me with proper link where i can explore more on cppunit...
thanks
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|