diff options
Diffstat (limited to 'CST 126/unit_tests/unit_tests.cpp')
| -rw-r--r-- | CST 126/unit_tests/unit_tests.cpp | 24 |
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); + } + }; +} |