From e3d5591b2fb4e38758f0873a2700fe3a1fc30c66 Mon Sep 17 00:00:00 2001 From: Jackson Date: Wed, 17 Apr 2024 19:34:09 -0700 Subject: Adding unit test --- CST 126/Unit_Tests/Unit_Tests.cpp | 17 +++ CST 126/Unit_Tests/Unit_Tests.vcxproj | 173 ++++++++++++++++++++++++++ CST 126/Unit_Tests/Unit_Tests.vcxproj.filters | 30 +++++ CST 126/Unit_Tests/pch.cpp | 5 + CST 126/Unit_Tests/pch.h | 12 ++ 5 files changed, 237 insertions(+) create mode 100644 CST 126/Unit_Tests/Unit_Tests.cpp create mode 100644 CST 126/Unit_Tests/Unit_Tests.vcxproj create mode 100644 CST 126/Unit_Tests/Unit_Tests.vcxproj.filters create mode 100644 CST 126/Unit_Tests/pch.cpp create mode 100644 CST 126/Unit_Tests/pch.h (limited to 'CST 126/Unit_Tests') diff --git a/CST 126/Unit_Tests/Unit_Tests.cpp b/CST 126/Unit_Tests/Unit_Tests.cpp new file mode 100644 index 0000000..a40dc12 --- /dev/null +++ b/CST 126/Unit_Tests/Unit_Tests.cpp @@ -0,0 +1,17 @@ +#include "pch.h" +#include "CppUnitTest.h" + +using namespace Microsoft::VisualStudio::CppUnitTestFramework; + +namespace UnitTests +{ + TEST_CLASS(UnitTests) + { + public: + + TEST_METHOD(TestMethod1) + { + + } + }; +} diff --git a/CST 126/Unit_Tests/Unit_Tests.vcxproj b/CST 126/Unit_Tests/Unit_Tests.vcxproj new file mode 100644 index 0000000..33c6188 --- /dev/null +++ b/CST 126/Unit_Tests/Unit_Tests.vcxproj @@ -0,0 +1,173 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + Debug + x64 + + + Release + x64 + + + + 17.0 + {7A5DE3AD-A914-49F0-92B4-F2FE84461332} + Win32Proj + UnitTests + 10.0 + NativeUnitTestProject + + + + DynamicLibrary + true + v143 + Unicode + false + + + DynamicLibrary + false + v143 + true + Unicode + false + + + DynamicLibrary + true + v143 + Unicode + false + + + DynamicLibrary + false + v143 + true + Unicode + false + + + + + + + + + + + + + + + + + + + + + true + + + true + + + false + + + false + + + + Use + Level3 + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + _DEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Use + Level3 + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + WIN32;_DEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Use + Level3 + true + true + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + WIN32;NDEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + true + true + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Use + Level3 + true + true + true + $(VCInstallDir)UnitTest\include;%(AdditionalIncludeDirectories) + NDEBUG;%(PreprocessorDefinitions) + true + pch.h + + + Windows + true + true + $(VCInstallDir)UnitTest\lib;%(AdditionalLibraryDirectories) + + + + + Create + Create + Create + Create + + + + + + + + + + \ No newline at end of file diff --git a/CST 126/Unit_Tests/Unit_Tests.vcxproj.filters b/CST 126/Unit_Tests/Unit_Tests.vcxproj.filters new file mode 100644 index 0000000..78402ca --- /dev/null +++ b/CST 126/Unit_Tests/Unit_Tests.vcxproj.filters @@ -0,0 +1,30 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx + + + {93995380-89BD-4b04-88EB-625FBE52EBFB} + h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms + + + + + Source Files + + + Source Files + + + + + Header Files + + + \ No newline at end of file diff --git a/CST 126/Unit_Tests/pch.cpp b/CST 126/Unit_Tests/pch.cpp new file mode 100644 index 0000000..64b7eef --- /dev/null +++ b/CST 126/Unit_Tests/pch.cpp @@ -0,0 +1,5 @@ +// pch.cpp: source file corresponding to the pre-compiled header + +#include "pch.h" + +// When you are using pre-compiled headers, this source file is necessary for compilation to succeed. diff --git a/CST 126/Unit_Tests/pch.h b/CST 126/Unit_Tests/pch.h new file mode 100644 index 0000000..9d715b0 --- /dev/null +++ b/CST 126/Unit_Tests/pch.h @@ -0,0 +1,12 @@ +// pch.h: This is a precompiled header file. +// Files listed below are compiled only once, improving build performance for future builds. +// This also affects IntelliSense performance, including code completion and many code browsing features. +// However, files listed here are ALL re-compiled if any one of them is updated between builds. +// Do not add files here that you will be updating frequently as this negates the performance advantage. + +#ifndef PCH_H +#define PCH_H + +// add headers that you want to pre-compile here + +#endif //PCH_H -- cgit v1.2.3