Common: Add UnitTest.h

This commit is contained in:
Birunthan Mohanathas 2013-08-11 14:29:07 +03:00
parent 0afbdac9fe
commit 79b9af3320
8 changed files with 8 additions and 18 deletions

View File

@ -37,6 +37,7 @@
<ClInclude Include="Platform.h" /> <ClInclude Include="Platform.h" />
<ClInclude Include="RawString.h" /> <ClInclude Include="RawString.h" />
<ClInclude Include="StringUtil.h" /> <ClInclude Include="StringUtil.h" />
<ClInclude Include="UnitTest.h" />
</ItemGroup> </ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets"> <ImportGroup Label="ExtensionTargets">

View File

@ -18,5 +18,6 @@
<ClInclude Include="StringUtil.h" /> <ClInclude Include="StringUtil.h" />
<ClInclude Include="ControlTemplate.h" /> <ClInclude Include="ControlTemplate.h" />
<ClInclude Include="MathParser.h" /> <ClInclude Include="MathParser.h" />
<ClInclude Include="UnitTest.h" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@ -18,11 +18,9 @@
#include "Canvas.h" #include "Canvas.h"
#include "TextFormatD2D.h" #include "TextFormatD2D.h"
#include <CppUnitTest.h> #include "../UnitTest.h"
#include <memory> #include <memory>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Gfx { namespace Gfx {
TEST_CLASS(Common_Gfx_TextFormatD2D_Test) TEST_CLASS(Common_Gfx_TextFormatD2D_Test)

View File

@ -17,9 +17,7 @@
*/ */
#include "MathParser.h" #include "MathParser.h"
#include <CppUnitTest.h> #include "UnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace MathParser { namespace MathParser {

View File

@ -17,11 +17,9 @@
*/ */
#include "PathUtil.h" #include "PathUtil.h"
#include <CppUnitTest.h> #include "UnitTest.h"
#include <Shlobj.h> #include <Shlobj.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace PathUtil { namespace PathUtil {
TEST_CLASS(Common_PathUtil_Test) TEST_CLASS(Common_PathUtil_Test)

View File

@ -17,9 +17,7 @@
*/ */
#include "StringUtil.h" #include "StringUtil.h"
#include <CppUnitTest.h> #include "UnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace StringUtil { namespace StringUtil {

View File

@ -17,9 +17,7 @@
*/ */
#include "ConfigParser.h" #include "ConfigParser.h"
#include <CppUnitTest.h> #include "../Common/UnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
TEST_CLASS(Library_ConfigParser_Test) TEST_CLASS(Library_ConfigParser_Test)
{ {

View File

@ -17,9 +17,7 @@
*/ */
#include "SkinRegistry.h" #include "SkinRegistry.h"
#include <CppUnitTest.h> #include "../Common/UnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
TEST_CLASS(Library_SkinRegistry_Test) TEST_CLASS(Library_SkinRegistry_Test)
{ {