Quick updates to AzNetworking unit tests
Signed-off-by: puvvadar <puvvadar@amazon.com>
This commit is contained in:
@@ -11,4 +11,16 @@
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
TEST(IpAddressTests, TestIpQuads)
|
||||
{
|
||||
const AzNetworking::IpAddress ip = AzNetworking::IpAddress(127, 0, 0, 1, 12345);
|
||||
|
||||
EXPECT_EQ(ip.GetQuadA(), 127);
|
||||
EXPECT_EQ(ip.GetQuadB(), 0);
|
||||
EXPECT_EQ(ip.GetQuadC(), 0);
|
||||
EXPECT_EQ(ip.GetQuadD(), 1);
|
||||
|
||||
EXPECT_EQ(ip.GetString(), "127.0.0.1:12345");
|
||||
EXPECT_EQ(ip.GetIpString(), "127.0.0.1");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user