iris unit test, visual studio 11 C++ Unit Test Framework 対応 ファイル  
[詳解]
[ソースコード]
 | 
|    | iuutil | 
|   | iutest utility namespace 
  | 
|   | 
 | 
 | 
| #define  | IUTEST(testcase_,  testname_) | 
|   | 
| #define  | IUTEST_F(testfixture_,  testname_) | 
|   | 
| #define  | IUTEST_P(testfixture_,  testname_) | 
|   | 
| #define  | IUTEST_TYPED_TEST(testfixture_,  testname_) | 
|   | 
| #define  | IUTEST_TYPED_TEST_P(testfixture_,  testname_) | 
|   | 
| #define  | IUTEST_VCUNIT_I(testcase_,  testname_,  className,  methodName) | 
|   | 
| 
#define  | IUTEST_VCUNIT_EXEC_(testcase_,  testname_)   Body( "*" #testcase_ "." #testname_ "*" ) | 
|   | 
| 
#define  | IUTEST_VCUNIT_TEST_CLASS(className)   ONLY_USED_AT_NAMESPACE_SCOPE class className : public ::iuutil::VisualStudio::TestClass<className> | 
|   | 
iris unit test, visual studio 11 C++ Unit Test Framework 対応 ファイル 
- 著者
 - t.shirayanagi 
 
- copyright
 - Copyright (C) 2015-2018, Takazumi Shirayanagi
This software is released under the new BSD License, see LICENSE  
 
◆ IUTEST
      
        
          | #define IUTEST | 
          ( | 
            | 
          testcase_,  | 
        
        
           | 
           | 
            | 
          testname_  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
値:    IUTEST_VCUNIT_I(testcase_, testname_, testcase_##testname_##_class, testcase_##
_##testname_);   \
 
    IUTEST_TEST(testcase_, testname_)
 
 
 
◆ IUTEST_F
      
        
          | #define IUTEST_F | 
          ( | 
            | 
          testfixture_,  | 
        
        
           | 
           | 
            | 
          testname_  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
値:    IUTEST_VCUNIT_I(testfixture_, testname_, testfixture_##testname_##_class, testfixture_##
_##testname_);  \
 
    IUTEST_TEST_F_(testfixture_, testname_)
 
 
 
◆ IUTEST_P
      
        
          | #define IUTEST_P | 
          ( | 
            | 
          testfixture_,  | 
        
        
           | 
           | 
            | 
          testname_  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
値:    IUTEST_VCUNIT_I(testfixture_, testname_, testfixture_##testname_##_class, testfixture_##
_##testname_);  \
 
    IUTEST_TEST_P_(testfixture_, testname_)
 
 
 
◆ IUTEST_TYPED_TEST
      
        
          | #define IUTEST_TYPED_TEST | 
          ( | 
            | 
          testfixture_,  | 
        
        
           | 
           | 
            | 
          testname_  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
値:    IUTEST_VCUNIT_I(testfixture_, testname_, testfixture_##testname_##_class, testfixture_##
_##testname_);  \
 
    IUTEST_TYPED_TEST_(testfixture_, testname_)
 
 
 
◆ IUTEST_TYPED_TEST_P
      
        
          | #define IUTEST_TYPED_TEST_P | 
          ( | 
            | 
          testfixture_,  | 
        
        
           | 
           | 
            | 
          testname_  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
値:    IUTEST_VCUNIT_I(testfixture_, testname_, testfixture_##testname_##_class, testfixture_##
_##testname_);  \
 
    IIUT_TYPED_TEST_P_(testfixture_, testname_)
 
 
 
◆ IUTEST_VCUNIT_I
      
        
          | #define IUTEST_VCUNIT_I | 
          ( | 
            | 
          testcase_,  | 
        
        
           | 
           | 
            | 
          testname_,  | 
        
        
           | 
           | 
            | 
          className,  | 
        
        
           | 
           | 
            | 
          methodName  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
値:    IUTEST_VCUNIT_TEST_CLASS(className) {                               \
    public: TEST_METHOD(methodName) {                                   \
        IUTEST_VCUNIT_EXEC_(testcase_, testname_); }                    \
    IIUT_VCUNIT_METHOD_ATTRIBUTE(testcase_, methodName)                 \
    }