-
October 3rd, 2013, 05:01 PM
#1
I need some explanation about the following piece of code
Hello,
I am trying to understand the following code written in unix platform about unitTest:
/****************************************/
#define TEST(name,classUnderTest)
class classUnderTest##name##Test : public Test
{
public:
classUnderTest##name##Test () : Test (#name "Test") {}
void setup() {};
void teardown() {};
void runTest (TestResult& result_);
} classUnderTest##name##Instance;
void classUnderTest##name##Test::runTest (TestResult& result_)
/*****************************************************/
Could anyone explain what does ##name## stand for? I would like to use in visual studio 2010.
Please provide some suggestion as I am a newbie in writing unitTest.
Thanks,
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
|