diff options
| author | Arthur Spears <[email protected]> | 2024-04-20 11:20:18 -0700 |
|---|---|---|
| committer | Arthur Spears <[email protected]> | 2024-04-20 11:20:18 -0700 |
| commit | 87ead23fc848ed17e307f8a1cc1504ddefb6e533 (patch) | |
| tree | 4963b69eb1330e138f1f9052002a4a9e1b694bf1 /CST 126/UnitTest2/UnitTest2.cpp | |
| parent | Merge branch 'develop' of https://github.com/OIT-WI-2024/homework-1-arthurtsp... (diff) | |
| parent | Adding basic unit tests to Solution (#2) (diff) | |
| download | homework-1-arthurtspears-87ead23fc848ed17e307f8a1cc1504ddefb6e533.tar.xz homework-1-arthurtspears-87ead23fc848ed17e307f8a1cc1504ddefb6e533.zip | |
mergine develop after PR
Diffstat (limited to 'CST 126/UnitTest2/UnitTest2.cpp')
| -rw-r--r-- | CST 126/UnitTest2/UnitTest2.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/CST 126/UnitTest2/UnitTest2.cpp b/CST 126/UnitTest2/UnitTest2.cpp new file mode 100644 index 0000000..825629a --- /dev/null +++ b/CST 126/UnitTest2/UnitTest2.cpp @@ -0,0 +1,35 @@ +#include "pch.h" +#include "CppUnitTest.h" + +#include "helpers.hpp" + +using namespace Microsoft::VisualStudio::CppUnitTestFramework; + +namespace UnitTest2 +{ + TEST_CLASS(Add_Function_Overloads) + { + public: + + TEST_METHOD(Addition_Function_Overload00_Correctly) + { + //Arrange + + //Act + int result = add(15, 15, 15); + + //Assert + Assert::AreEqual(45, result); + } + TEST_METHOD(Addition_Function_Overload01_Correctly) + { + //Arrange + + //Act + int result = add(15, 15, 15, 15); + + //Assert + Assert::AreEqual(60, result); + } + }; +} |