Onsens
1.0
This is C++ game about bitwise logic.
Toggle main menu visibility
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
b
c
d
e
f
g
i
l
m
n
o
p
q
r
s
t
u
v
Functions
Variables
Typedefs
b
c
f
g
i
m
s
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
a
b
c
d
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
Files
File List
File Members
All
c
m
o
s
Functions
c
m
o
Macros
▼
Onsens
►
Documentation
Download
QA Documentation
Deprecated List
►
Modules
►
Namespaces
►
Classes
▼
Files
▼
File List
Documents
▼
Game
▼
Program
►
BooleoGame
►
External
▼
Onsens-UnitTesting
►
Onsens-UnitTesting.cpp
pch.cpp
pch.h
►
File Members
•
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
5
using namespace
Microsoft::VisualStudio::CppUnitTestFramework;
6
7
namespace
UnitTest1
8
{
9
//Test case FOR application Running
10
//Testing if the function return true
11
TEST_CLASS
(
UnitTest1
)
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
}
Game
Definition:
Game.h:20
Game::running
bool running()
Definition:
Game.cpp:10
UnitTest1
Definition:
Onsens-UnitTesting.cpp:8
UnitTest1::TEST_CLASS
TEST_CLASS(UnitTest1)
Definition:
Onsens-UnitTesting.cpp:11
pch.h
Game
Program
Onsens-UnitTesting
Onsens-UnitTesting.cpp
Generated by
1.9.4