试图在调试模式下运行 UnitTest 并在 CppUnitTest.h 文件中抛出异常?

问题描述

这是我运行的单元测试。它不会出错,但不会在测试中运行。 但是,当我在调试模式下运行时,在 VS 中出现以下异常:CppUnitTest.h:

#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 
}

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)