diff options
| author | BobJoe64 <[email protected]> | 2024-04-27 21:40:25 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-04-27 21:40:25 -0700 |
| commit | b9a0e331403cf46e81780d52e679c19be11d164c (patch) | |
| tree | cc37602e6bf3e3ba6beb76fa87a3da8d031dee28 /CST 126/unit_tests/unit_tests.cpp | |
| parent | Fixed a grammar error (diff) | |
| parent | Created Unit_Tests (diff) | |
| download | homework-1-bobjoe64-develop.tar.xz homework-1-bobjoe64-develop.zip | |
Unit_Tests merging
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); + } + }; +} |