Documentation for module: Graphics
Former-commit-id: 5fba876346aec7b35bc618002b669ff194e58544
This commit is contained in:
20
tests/Engine/Graphics/ColorBackground.cpp
Normal file
20
tests/Engine/Graphics/ColorBackground.cpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#include <Nazara/Graphics/ColorBackground.hpp>
|
||||
#include <Catch/catch.hpp>
|
||||
|
||||
SCENARIO("ColorBackground", "[GRAPHICS][COLORBACKGROUND]")
|
||||
{
|
||||
GIVEN("A default color background")
|
||||
{
|
||||
Nz::ColorBackground colorBackground;
|
||||
|
||||
WHEN("We assign it a color")
|
||||
{
|
||||
colorBackground.SetColor(Nz::Color::Red);
|
||||
|
||||
THEN("We can get it")
|
||||
{
|
||||
REQUIRE(colorBackground.GetColor() == Nz::Color::Red);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user