Added NetAddressTest

This commit is contained in:
Garry Newman 2020-02-26 15:28:52 +00:00
parent 61b09add87
commit f7d9acd05a

View File

@ -101,6 +101,20 @@ public async Task NormalEndtoEnd()
await Task.WhenAll( server, client );
}
[TestMethod]
public async Task NetAddressTest()
{
{
var n = NetAddress.From( "127.0.0.1", 12445 );
Assert.AreEqual( n.ToString(), "127.0.0.1:12445" );
}
{
var n = NetAddress.AnyIp( 5543 );
Assert.AreEqual( n.ToString(), "[::]:5543" );
}
}
}
}