//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldSupportDefaultIPv6Value() internal virtual void ShouldSupportDefaultIPv6Value() { //JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter: SocketAddress socketAddress = SocketAddressParser.DeriveSocketAddress("setting.name", null, "fe80:1:2::4", 456, SocketAddress::new); assertEquals("fe80:1:2::4", socketAddress.Hostname); assertEquals(456, socketAddress.Port); assertEquals("[fe80:1:2::4]:456", socketAddress.ToString()); assertFalse(socketAddress.Wildcard); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldNotUseDefaultsWhenSettingValueSupplied() internal virtual void ShouldNotUseDefaultsWhenSettingValueSupplied() { //JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter: SocketAddress socketAddress = SocketAddressParser.DeriveSocketAddress("setting.name", "[fe80:3:4::6]:456", "fe80:1:2::4", 123, SocketAddress::new); assertEquals("fe80:3:4::6", socketAddress.Hostname); assertEquals(456, socketAddress.Port); assertEquals("[fe80:3:4::6]:456", socketAddress.ToString()); assertFalse(socketAddress.Wildcard); }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes: //ORIGINAL LINE: @Test void shouldSupportPortOnly() internal virtual void ShouldSupportPortOnly() { //JAVA TO C# CONVERTER TODO TASK: Method reference constructor syntax is not converted by Java to C# Converter: SocketAddress socketAddress = SocketAddressParser.DeriveSocketAddress("setting.name", ":123", "my.domain", 456, SocketAddress::new); assertEquals("my.domain", socketAddress.Hostname); assertEquals(123, socketAddress.Port); assertEquals("my.domain:123", socketAddress.ToString()); assertFalse(socketAddress.Wildcard); }