aboutsummaryrefslogtreecommitdiff
path: root/CST 126/unit_tests/unit_tests.cpp
diff options
context:
space:
mode:
authorLogan <[email protected]>2024-04-17 19:27:16 -0700
committerLogan <[email protected]>2024-04-17 19:27:16 -0700
commit712b26c06593ed5ea0031b99cc9252a6b6f36111 (patch)
treea499c3129d37b58b64336d4cf2daca7124751226 /CST 126/unit_tests/unit_tests.cpp
parentAdded Hello World (diff)
downloadhomework-1-bobjoe64-712b26c06593ed5ea0031b99cc9252a6b6f36111.tar.xz
homework-1-bobjoe64-712b26c06593ed5ea0031b99cc9252a6b6f36111.zip
Created Unit_Testsfeature/Unit_Tests
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);
+ }
+ };
+}