aboutsummaryrefslogtreecommitdiff
path: root/CST 126/unit_tests/unit_tests.cpp
diff options
context:
space:
mode:
authorBobJoe64 <[email protected]>2024-04-27 21:40:25 -0700
committerGitHub <[email protected]>2024-04-27 21:40:25 -0700
commitb9a0e331403cf46e81780d52e679c19be11d164c (patch)
treecc37602e6bf3e3ba6beb76fa87a3da8d031dee28 /CST 126/unit_tests/unit_tests.cpp
parentFixed a grammar error (diff)
parentCreated Unit_Tests (diff)
downloadhomework-1-bobjoe64-develop.tar.xz
homework-1-bobjoe64-develop.zip
Merge pull request #2 from OIT-WI-2024/feature/Unit_TestsHEADdevelop
Unit_Tests merging
Diffstat (limited to 'CST 126/unit_tests/unit_tests.cpp')
-rw-r--r--CST 126/unit_tests/unit_tests.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/CST 126/unit_tests/unit_tests.cpp b/CST 126/unit_tests/unit_tests.cpp
new file mode 100644
index 0000000..661ec9c
--- /dev/null
+++ b/CST 126/unit_tests/unit_tests.cpp
@@ -0,0 +1,24 @@
+#include "pch.h"
+#include "CppUnitTest.h"
+
+using namespace Microsoft::VisualStudio::CppUnitTestFramework;
+
+namespace unittests
+{
+ TEST_CLASS(unittests)
+ {
+ public:
+
+ TEST_METHOD(Addition_Function_Overloads_Correctly)
+ {
+ //Arrange
+
+ //Act
+ int result = add(15, 15, 15);
+
+ //Assert
+
+ Assert::AreEqual(45, result);
+ }
+ };
+}