mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Revert "Fix running debug projects that use unit testing"
This reverts commit ced3dd2.
			
			
This commit is contained in:
		@@ -37,7 +37,6 @@
 | 
			
		||||
    <ClInclude Include="Platform.h" />
 | 
			
		||||
    <ClInclude Include="RawString.h" />
 | 
			
		||||
    <ClInclude Include="StringUtil.h" />
 | 
			
		||||
    <ClInclude Include="Test.h" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
 | 
			
		||||
  <ImportGroup Label="ExtensionTargets">
 | 
			
		||||
 
 | 
			
		||||
@@ -18,6 +18,5 @@
 | 
			
		||||
    <ClInclude Include="StringUtil.h" />
 | 
			
		||||
    <ClInclude Include="ControlTemplate.h" />
 | 
			
		||||
    <ClInclude Include="MathParser.h" />
 | 
			
		||||
    <ClInclude Include="Test.h" />
 | 
			
		||||
  </ItemGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
@@ -16,9 +16,11 @@
 | 
			
		||||
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include "Test.h"
 | 
			
		||||
#include "CppUnitTest.h"
 | 
			
		||||
#include "MathParser.h"
 | 
			
		||||
 | 
			
		||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
 | 
			
		||||
 | 
			
		||||
namespace MathParser {
 | 
			
		||||
 | 
			
		||||
TEST_CLASS(Common_MathParser_Test)
 | 
			
		||||
 
 | 
			
		||||
@@ -16,10 +16,12 @@
 | 
			
		||||
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include "Test.h"
 | 
			
		||||
#include "CppUnitTest.h"
 | 
			
		||||
#include "PathUtil.h"
 | 
			
		||||
#include <Shlobj.h>
 | 
			
		||||
 | 
			
		||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
 | 
			
		||||
 | 
			
		||||
namespace PathUtil {
 | 
			
		||||
 | 
			
		||||
TEST_CLASS(Common_PathUtil_Test)
 | 
			
		||||
 
 | 
			
		||||
@@ -16,9 +16,11 @@
 | 
			
		||||
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#include "Test.h"
 | 
			
		||||
#include "CppUnitTest.h"
 | 
			
		||||
#include "StringUtil.h"
 | 
			
		||||
 | 
			
		||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
 | 
			
		||||
 | 
			
		||||
namespace StringUtil {
 | 
			
		||||
 | 
			
		||||
TEST_CLASS(Common_StringUtil_Test)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,38 +0,0 @@
 | 
			
		||||
/*
 | 
			
		||||
  Copyright (C) 2013 Rainmeter Team
 | 
			
		||||
 | 
			
		||||
  This program is free software; you can redistribute it and/or
 | 
			
		||||
  modify it under the terms of the GNU General Public License
 | 
			
		||||
  as published by the Free Software Foundation; either version 2
 | 
			
		||||
  of the License, or (at your option) any later version.
 | 
			
		||||
 | 
			
		||||
  This program is distributed in the hope that it will be useful,
 | 
			
		||||
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 | 
			
		||||
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | 
			
		||||
  GNU General Public License for more details.
 | 
			
		||||
 | 
			
		||||
  You should have received a copy of the GNU General Public License
 | 
			
		||||
  along with this program; if not, write to the Free Software
 | 
			
		||||
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 | 
			
		||||
*/
 | 
			
		||||
 | 
			
		||||
#ifndef RM_COMMON_TEST_H
 | 
			
		||||
#define RM_COMMON_TEST_H
 | 
			
		||||
 | 
			
		||||
// This file is meant to be included only by unit testing .cpp files.
 | 
			
		||||
 | 
			
		||||
#include "CppUnitTest.h"
 | 
			
		||||
 | 
			
		||||
#ifndef _DEBUG
 | 
			
		||||
#error Unit testing is not available in Release builds.
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// DLL projects should delay-load the CppUnitTestFramework.dll to avoid "module not found" errors
 | 
			
		||||
// since CppUnitTestFramework.dll is available only when running tests.
 | 
			
		||||
#ifdef _MD
 | 
			
		||||
#pragma comment(linker, "/DELAYLOAD:Microsoft.VisualStudio.TestTools.CppUnitTestFramework.dll")
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
 | 
			
		||||
 | 
			
		||||
#endif
 | 
			
		||||
		Reference in New Issue
	
	Block a user