Visual c++ 试图在调试模式下运行UnitTest并在CppUnitTest.h文件中引发异常?
这是我运行的单元测试。它不会出错,但不会在测试中运行。 但是,在调试模式下运行时,在VS:CppUnitTest.h中会出现以下异常:Visual c++ 试图在调试模式下运行UnitTest并在CppUnitTest.h文件中引发异常?,visual-c++,microsoft-cpp-unit-test,Visual C++,Microsoft Cpp Unit Test,这是我运行的单元测试。它不会出错,但不会在测试中运行。 但是,在调试模式下运行时,在VS:CppUnitTest.h中会出现以下异常: #include "stdafx.h" #include "CppUnitTest.h" #include "UT_TestSupport.h" using namespace Microsoft::VisualStudio::CppUnitTestFramework; using namespace
#include "stdafx.h"
#include "CppUnitTest.h"
#include "UT_TestSupport.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
using namespace SAP;
namespace UnitTest
{
///-------------------------------------------------------------------------------------
/// \testclass TC_RunTimeProperties
///
/// \brief Unit tests
///-------------------------------------------------------------------------------------
TEST_CLASS (TC_CommMgr)
{
public: // Test Methods
///-----------------------------------------------------------------------------
///
///-----------------------------------------------------------------------------
TEST_METHOD(TM_CommMgr_ParseConfig)
{
U32 u32TestCase = 0;
} // END TEST_METHOD
}; // END TEST_CLASS
}