mirror of
https://github.com/kierankihn/uno-game.git
synced 2025-12-27 02:13:18 +08:00
test(network): add unit tests for NetworkClient and NetworkServer
- Introduced comprehensive test cases for `NetworkClient` and `NetworkServer` functionality. - Added tests for constructor, `connect`, `send`, `read`, and round-trip scenarios in `NetworkClientTest`. - Added tests for player management, message sending, and concurrent access in `NetworkServerTest`. - Updated `CMakeLists.txt` to include `NetworkClientTest` and `NetworkServerTest` in the build configuration.
This commit is contained in:
@@ -11,6 +11,8 @@ add_executable(uno-game-test
|
||||
unit/game/PlayerTest.cpp
|
||||
unit/game/GameStateTest.cpp
|
||||
unit/network/MessageSerializerTest.cpp
|
||||
unit/network/NetworkServerTest.cpp
|
||||
unit/network/NetworkClientTest.cpp
|
||||
)
|
||||
|
||||
target_link_libraries(uno-game-test
|
||||
|
||||
Reference in New Issue
Block a user