aboutsummaryrefslogtreecommitdiff
path: root/CST 126/UnitTest2/UnitTest2.cpp
blob: 825629a966a20910ef389d8bac447589ea5e71a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
		}
	};
}