diff options
Diffstat (limited to 'test/move_string_mapper.cpp')
-rw-r--r-- | test/move_string_mapper.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/move_string_mapper.cpp b/test/move_string_mapper.cpp index ab167e3..a7af36a 100644 --- a/test/move_string_mapper.cpp +++ b/test/move_string_mapper.cpp @@ -20,4 +20,19 @@ SCENARIO("Writing a move") } } + + GIVEN("Build missle controller move") + { + Move move = Move::BUILD_MISSILE_CONTROLLER; + + WHEN("It is mapped to a string") + { + std::string moveString = MoveStringMapper().toString(move); + + THEN("The string is correct") + { + REQUIRE(moveString == "BuildMissileController"); + } + } + } } |