diff options
Diffstat (limited to 'CST 126/Unit_Tests/Unit_Tests.cpp')
| -rw-r--r-- | CST 126/Unit_Tests/Unit_Tests.cpp | 20 |
1 files changed, 20 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..5330e41 --- /dev/null +++ b/CST 126/Unit_Tests/Unit_Tests.cpp @@ -0,0 +1,20 @@ +#include "pch.h" +#include "CppUnitTest.h" + +#include "helpers.hpp" + +using namespace Microsoft::VisualStudio::CppUnitTestFramework; + +namespace UnitTests +{ + TEST_CLASS(UnitTests) + { + public: + TEST_METHOD(Add_Overload_Returns_Correct_Value) + { + int result = add(15, 32, 15, 10); + + Assert::AreEqual(72, result); + } + }; +} |