Onsens  1.0
This is C++ game about bitwise logic.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Onsens-UnitTesting.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "CppUnitTest.h"
3#include "../BooleoGame/Game.h"
4
5using namespace Microsoft::VisualStudio::CppUnitTestFramework;
6
7namespace UnitTest1
8{
9 //Test case FOR application Running
10 //Testing if the function return true
12 {
13 public:
14
15 BEGIN_TEST_METHOD_ATTRIBUTE(UnitTest)
16 TEST_OWNER(L"SMTashev20")
17 TEST_PRIORITY("High")
18 END_TEST_METHOD_ATTRIBUTE()
19 TEST_METHOD(UnitTest)
20 {
21 //Arrange
22 Game game;
23 bool running1;
24 bool expected = true;
25
26 //Act
27 running1 = game.running();
28
29 //Assert
30 Assert::AreEqual(expected, running1, L"Checks if the running() function returns true or false");
31 }
32 };
33}
Definition: Game.h:20
bool running()
Definition: Game.cpp:10
TEST_CLASS(UnitTest1)