Skip to content

Commit 8ec3554

Browse files
committed
Add unit tests for Sprite::isPaused()
1 parent 655b8e1 commit 8ec3554

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Resource/Sprite.test.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,15 @@ TEST_F(Sprite, size) {
3434
EXPECT_EQ((NAS2D::Vector{1, 1}), sprite.size());
3535
}
3636

37+
TEST_F(Sprite, isPaused) {
38+
EXPECT_FALSE(sprite.isPaused());
39+
}
40+
41+
TEST_F(Sprite, isPausedStopAnimation) {
42+
sprite.play("frameStopAction");
43+
EXPECT_TRUE(sprite.isPaused());
44+
}
45+
3746
TEST_F(Sprite, advanceByTimeDelta) {
3847
EXPECT_EQ(0u, sprite.advanceByTimeDelta(0u));
3948
EXPECT_EQ(0u, sprite.advanceByTimeDelta(1u));

0 commit comments

Comments
 (0)