Skip to content

Commit

Permalink
Refactor testoscar/TestingHelpers to new style
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jun 26, 2024
1 parent 242b677 commit d11cd60
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 315 deletions.
6 changes: 3 additions & 3 deletions tests/testoscar/Graphics/TestCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,13 @@ TEST(Camera, CanGetBackgroundColor)
TEST(Camera, CanSetBackgroundColor)
{
Camera camera;
camera.set_background_color(GenerateColor());
camera.set_background_color(generate<Color>());
}

TEST(Camera, SetBackgroundColorMakesGetBackgroundColorReturnTheColor)
{
Camera camera;
const Color color = GenerateColor();
const Color color = generate<Color>();

camera.set_background_color(color);

Expand All @@ -127,7 +127,7 @@ TEST(Camera, SetBackgroundColorMakesCameraCompareNonEqualWithCopySource)

ASSERT_EQ(camera, copy);

copy.set_background_color(GenerateColor());
copy.set_background_color(generate<Color>());

ASSERT_NE(camera, copy);
}
Expand Down
Loading

0 comments on commit d11cd60

Please sign in to comment.