aboutsummaryrefslogtreecommitdiff
path: root/CST 126/UnitTest1/UnitTest1.cpp
diff options
context:
space:
mode:
authorrPatrickWarner <[email protected]>2024-04-17 19:26:53 -0700
committerrPatrickWarner <[email protected]>2024-04-17 19:26:53 -0700
commit7d7a3c44568dd6c041e3fdb2d994e50fc7b9016e (patch)
treef7377f09f0e6e6c6528f7c9be343e03782d6c019 /CST 126/UnitTest1/UnitTest1.cpp
parentFinished guessing game (diff)
downloadhomework-1-reecepwarner-7d7a3c44568dd6c041e3fdb2d994e50fc7b9016e.tar.xz
homework-1-reecepwarner-7d7a3c44568dd6c041e3fdb2d994e50fc7b9016e.zip
unit test
Diffstat (limited to 'CST 126/UnitTest1/UnitTest1.cpp')
-rw-r--r--CST 126/UnitTest1/UnitTest1.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/CST 126/UnitTest1/UnitTest1.cpp b/CST 126/UnitTest1/UnitTest1.cpp
new file mode 100644
index 0000000..a022236
--- /dev/null
+++ b/CST 126/UnitTest1/UnitTest1.cpp
@@ -0,0 +1,20 @@
+#include "pch.h"
+#include "CppUnitTest.h"
+
+#include "TempLogHelper.hpp"
+
+using namespace Microsoft::VisualStudio::CppUnitTestFramework;
+
+namespace UnitTest1
+{
+ TEST_CLASS(UnitTest1)
+ {
+ public:
+
+ TEST_METHOD(Addition_Function_Correctly)
+ {
+ int result = add(15, 15, 15);
+ Assert::AreEqual(45, result);
+ }
+ };
+}