diff options
| author | Logan <[email protected]> | 2024-04-17 19:27:16 -0700 |
|---|---|---|
| committer | Logan <[email protected]> | 2024-04-17 19:27:16 -0700 |
| commit | 712b26c06593ed5ea0031b99cc9252a6b6f36111 (patch) | |
| tree | a499c3129d37b58b64336d4cf2daca7124751226 /CST 126/unit_tests/unit_tests.cpp | |
| parent | Added Hello World (diff) | |
| download | homework-1-bobjoe64-feature/Unit_Tests.tar.xz homework-1-bobjoe64-feature/Unit_Tests.zip | |
Created Unit_Testsfeature/Unit_Tests
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); + } + }; +} |