aboutsummaryrefslogtreecommitdiff
path: root/CST 126/UnitTest1/UnitTest1.cpp
diff options
context:
space:
mode:
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);
+ }
+ };
+}