Created
November 22, 2012 19:31
-
-
Save RickEyre/4132633 to your computer and use it in GitHub Desktop.
Test Fixture Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public CueVerticalTest : public testing::Test | |
{ | |
protected: | |
virtual void SetUp() | |
{ | |
} | |
virtual void SetFile(char * fileName) | |
{ | |
parser = ItemStorageParser(fileName); | |
parser.parse(); | |
&cue = parser.getCue(0); | |
} | |
virtual void TearDown() | |
{ | |
} | |
ItemStorageParser parser; | |
Cue cue; | |
} | |
TEST_F(CueVerticalTest, RL) | |
{ | |
SetFile("cue-settings/vertical/rl.vtt"); | |
ASSERT_EQ(true, cue.isVerticalRightToLeft()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment