#include // Other 1st party headers #include #include #include TEST_CASE("[Network] sf::TcpSocket") { SECTION("Type traits") { STATIC_CHECK(!std::is_copy_constructible_v); STATIC_CHECK(!std::is_copy_assignable_v); STATIC_CHECK(std::is_nothrow_move_constructible_v); STATIC_CHECK(std::is_nothrow_move_assignable_v); } SECTION("Construction") { const sf::TcpSocket tcpSocket; CHECK(tcpSocket.getLocalPort() == 0); CHECK(!tcpSocket.getRemoteAddress().has_value()); CHECK(tcpSocket.getRemotePort() == 0); } }