-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotetestsuite.h
59 lines (54 loc) · 1.63 KB
/
notetestsuite.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/////////////////////////////////////////////////////////////////////////////
// Name: notetestsuite.h
// Purpose: Performs unit testing on the Note class
// Author: Brad Larsen
// Modified by:
// Created: Jan 5, 2005
// RCS-ID:
// Copyright: (c) Brad Larsen
// License: wxWindows license
/////////////////////////////////////////////////////////////////////////////
#ifndef __NOTETESTSUITE_H__
#define __NOTETESTSUITE_H__
/// Performs unit testing on the Note class
class NoteTestSuite :
public TestSuite
{
DECLARE_DYNAMIC_CLASS(NoteTestSuite)
// Constructor/Destructor
public:
NoteTestSuite();
~NoteTestSuite();
// Overrides
size_t GetTestCount() const;
bool RunTestCases();
// Test Cases
private:
bool TestCaseConstructor();
bool TestCaseCreation();
bool TestCaseOperator();
bool TestCaseSerialize();
bool TestCaseString();
bool TestCaseFretNumber();
bool TestCaseTied();
bool TestCaseMuted();
bool TestCaseTieWrap();
bool TestCaseHammerOn();
bool TestCaseHammerOnFromNowhere();
bool TestCasePullOff();
bool TestCasePullOffToNowhere();
bool TestCaseNaturalHarmonic();
bool TestCaseGhostNote();
bool TestCaseOctave8va();
bool TestCaseOctave15ma();
bool TestCaseOctave8mb();
bool TestCaseOctave15mb();
bool TestCaseSimpleFlags();
bool TestCaseSlide();
bool TestCaseBend();
bool TestCaseTappedHarmonic();
bool TestCaseTrill();
bool TestCaseArtificialHarmonic();
bool TestCaseComplexSymbol();
};
#endif