mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Added NetAddressTest
This commit is contained in:
parent
61b09add87
commit
f7d9acd05a
@ -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" );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user