Skip to content
Permalink
Browse files

Added missing unit test files.-

  • Loading branch information...
jodavis42 committed Jul 25, 2017
1 parent 48ce74b commit ed0919ee6631bf53af4e76c87b32f3182c750c47
Showing with 2,546 additions and 5 deletions.
  1. +0 −5 .hgignore
  2. +36 −0 UnitTests/CppUnitLite2/CppUnitLite2.h
  3. +28 −0 UnitTests/CppUnitLite2/CppUnitLite2.sln
  4. +228 −0 UnitTests/CppUnitLite2/CppUnitLite2.vcproj
  5. +70 −0 UnitTests/CppUnitLite2/CppUnitLite2.vcxproj
  6. +38 −0 UnitTests/CppUnitLite2/CppUnitLite2.vcxproj.filters
  7. +43 −0 UnitTests/CppUnitLite2/ExceptionHandler.cpp
  8. +30 −0 UnitTests/CppUnitLite2/ExceptionHandler.h
  9. +41 −0 UnitTests/CppUnitLite2/Failure.cpp
  10. +22 −0 UnitTests/CppUnitLite2/Failure.h
  11. +59 −0 UnitTests/CppUnitLite2/Linux/SignalHandler.cpp
  12. +20 −0 UnitTests/CppUnitLite2/Linux/SignalHandler.h
  13. +63 −0 UnitTests/CppUnitLite2/Test.cpp
  14. +274 −0 UnitTests/CppUnitLite2/Test.h
  15. +212 −0 UnitTests/CppUnitLite2/Test.vcproj
  16. +26 −0 UnitTests/CppUnitLite2/Test/MockTestResult.h
  17. +107 −0 UnitTests/CppUnitLite2/Test/SampleTests.cpp
  18. +235 −0 UnitTests/CppUnitLite2/Test/TestExceptionHandling.cpp
  19. +50 −0 UnitTests/CppUnitLite2/Test/TestFixtures.cpp
  20. +117 −0 UnitTests/CppUnitLite2/Test/TestMacros.cpp
  21. +181 −0 UnitTests/CppUnitLite2/Test/TestTestCase.cpp
  22. +28 −0 UnitTests/CppUnitLite2/Test/main.cpp
  23. +11 −0 UnitTests/CppUnitLite2/TestException.cpp
  24. +18 −0 UnitTests/CppUnitLite2/TestException.h
  25. +346 −0 UnitTests/CppUnitLite2/TestMacros.h
  26. +40 −0 UnitTests/CppUnitLite2/TestRegistry.cpp
  27. +25 −0 UnitTests/CppUnitLite2/TestRegistry.h
  28. +48 −0 UnitTests/CppUnitLite2/TestResult.cpp
  29. +26 −0 UnitTests/CppUnitLite2/TestResult.h
  30. +25 −0 UnitTests/CppUnitLite2/TestResultStdErr.cpp
  31. +13 −0 UnitTests/CppUnitLite2/TestResultStdErr.h
  32. +72 −0 UnitTests/CppUnitLite2/Win32/TestResultDebugOut.cpp
  33. +14 −0 UnitTests/CppUnitLite2/Win32/TestResultDebugOut.h
@@ -21,7 +21,6 @@ Extensions/Editor/tinyxml2.h
Build/Output/ZeroEngineSetup.exe
Build/Output
BuildOutput
test.cmd
Install/
CMakeBuilds/
*.cd
@@ -35,10 +34,6 @@ Data/ContentStore/
Data/ZilchCustomPluginShared/Zilch.hpp
Data/ZilchCustomPluginShared/ZeroEditor.lib
Data/ZilchCustomPluginShared/
UnitTests/CppUnitLite2/
UnitTests/Serialization/Debug/CppUnitLite2.lib
UnitTests/Serialization/Release/CppUnitLite2.lib
UnitTests/Serialization/Production/CppUnitLite2.lib

Extensions/UiWidget/Debug/*
*.opendb
@@ -0,0 +1,36 @@
// CppUnitLite2 Version 1.1
// Released 2005/12/12
//
// Released under the MIT license (with an extra restriction)
//
// Copyright (c) 2005 Noel Llopis
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the Software
// is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// Additionally, this software cannot be used for any software developed for
// or funded by a military organization.


#pragma once

#include "Test.h"
#include "TestResult.h"
#include "Failure.h"
#include "TestRegistry.h"
#include "ExceptionHandler.h"

@@ -0,0 +1,28 @@
Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CppUnitLite2", "CppUnitLite2.vcproj", "{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Test", "Test.vcproj", "{8BF52976-E92A-45E5-9C04-93C553C3D791}"
ProjectSection(ProjectDependencies) = postProject
{C9544704-7EC3-4E3B-B989-EDC0685F7FC4} = {C9544704-7EC3-4E3B-B989-EDC0685F7FC4}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Win32 = Debug|Win32
Release|Win32 = Release|Win32
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}.Debug|Win32.ActiveCfg = Debug|Win32
{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}.Debug|Win32.Build.0 = Debug|Win32
{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}.Release|Win32.ActiveCfg = Release|Win32
{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}.Release|Win32.Build.0 = Release|Win32
{8BF52976-E92A-45E5-9C04-93C553C3D791}.Debug|Win32.ActiveCfg = Debug|Win32
{8BF52976-E92A-45E5-9C04-93C553C3D791}.Debug|Win32.Build.0 = Debug|Win32
{8BF52976-E92A-45E5-9C04-93C553C3D791}.Release|Win32.ActiveCfg = Release|Win32
{8BF52976-E92A-45E5-9C04-93C553C3D791}.Release|Win32.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,228 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="CppUnitLite2"
ProjectGUID="{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}"
Keyword="Win32Proj"
TargetFrameworkVersion="131072"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="$(ZERO_OUTPUT)\Out\$(PlatformName)\$(ConfigurationName)\$(ProjectName)"
IntermediateDirectory="$(ZERO_OUTPUT)\Int\$(PlatformName)\$(ConfigurationName)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
PreprocessorDefinitions="WIN32;_DEBUG;_LIB"
MinimalRebuild="true"
ExceptionHandling="2"
BasicRuntimeChecks="3"
RuntimeLibrary="3"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="4"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/CppUnitLite2.lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="$(ZERO_OUTPUT)\Out\$(PlatformName)\$(ConfigurationName)\$(ProjectName)"
IntermediateDirectory="$(ZERO_OUTPUT)\Int\$(PlatformName)\$(ConfigurationName)\$(ProjectName)"
ConfigurationType="4"
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
PreprocessorDefinitions="WIN32;NDEBUG;_LIB"
ExceptionHandling="2"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
WarningLevel="3"
Detect64BitPortabilityProblems="false"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
OutputFile="$(OutDir)/CppUnitLite2.lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="ErrorOutput"
>
<File
RelativePath=".\Win32\TestResultDebugOut.cpp"
>
</File>
<File
RelativePath=".\Win32\TestResultDebugOut.h"
>
</File>
<File
RelativePath=".\TestResultStdErr.cpp"
>
</File>
<File
RelativePath=".\TestResultStdErr.h"
>
</File>
</Filter>
<File
RelativePath=".\CppUnitLite2.h"
>
</File>
<File
RelativePath=".\ExceptionHandler.cpp"
>
</File>
<File
RelativePath=".\ExceptionHandler.h"
>
</File>
<File
RelativePath=".\Failure.cpp"
>
</File>
<File
RelativePath=".\Failure.h"
>
</File>
<File
RelativePath=".\Test.cpp"
>
</File>
<File
RelativePath=".\Test.h"
>
</File>
<File
RelativePath=".\TestException.cpp"
>
</File>
<File
RelativePath=".\TestException.h"
>
</File>
<File
RelativePath=".\TestMacros.h"
>
</File>
<File
RelativePath=".\TestRegistry.cpp"
>
</File>
<File
RelativePath=".\TestRegistry.h"
>
</File>
<File
RelativePath=".\TestResult.cpp"
>
</File>
<File
RelativePath=".\TestResult.h"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Production|Win32">
<Configuration>Production</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{C9544704-7EC3-4E3B-B989-EDC0685F7FC4}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<!--Import the environment paths needed to find all our different repositories-->
<Import Project="$(SolutionDir)\Paths.props"/>
<!--Import the Win32 property sheet (from the build folder) for each configuration-->
<ImportGroup Condition="'$(Platform)'=='Win32'" Label="PropertySheets">
<Import Project="$(ZERO_SOURCE)\Build\Win32.$(Configuration).props" Condition="exists('$(ZERO_SOURCE)\Build\Win32.$(Configuration).props')" />
</ImportGroup>
<PropertyGroup Condition="'$(Platform)'=='Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<CharacterSet>NotSet</CharacterSet>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<PlatformToolset>v140</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<ItemGroup>
<ClCompile Include="Win32\TestResultDebugOut.cpp" />
<ClCompile Include="TestResultStdErr.cpp" />
<ClCompile Include="ExceptionHandler.cpp" />
<ClCompile Include="Failure.cpp" />
<ClCompile Include="Test.cpp" />
<ClCompile Include="TestException.cpp" />
<ClCompile Include="TestRegistry.cpp" />
<ClCompile Include="TestResult.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="Win32\TestResultDebugOut.h" />
<ClInclude Include="TestResultStdErr.h" />
<ClInclude Include="CppUnitLite2.h" />
<ClInclude Include="ExceptionHandler.h" />
<ClInclude Include="Failure.h" />
<ClInclude Include="Test.h" />
<ClInclude Include="TestException.h" />
<ClInclude Include="TestMacros.h" />
<ClInclude Include="TestRegistry.h" />
<ClInclude Include="TestResult.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
Oops, something went wrong.

0 comments on commit ed0919e

Please sign in to comment.
You can’t perform that action at this time.