public void CanUseDefaultPort() { var success = EndpointParser.TryParse("127.0.0.1", 7051, out var hostPort); Assert.True(success); Assert.Equal("127.0.0.1", hostPort.Host); Assert.Equal(7051, hostPort.Port); }
public void CanParseEndpoint(string endpoint, string expectedHost, int expectedPort) { var success = EndpointParser.TryParse(endpoint, 0, out var hostPort); Assert.True(success); Assert.Equal(expectedHost, hostPort.Host); Assert.Equal(expectedPort, hostPort.Port); }