public void TryParse_path_should_be_parsed(string endpointString, string path) { RedFoxEndpoint endpoint; Assert.IsTrue(RedFoxEndpoint.TryParse(endpointString, out endpoint)); Assert.AreEqual(path, endpoint.Path); }
public void TryParse_transport_should_be_parsed(string endpointUri, RedFoxTransport expectedTransport) { RedFoxEndpoint endpoint; Assert.IsTrue(RedFoxEndpoint.TryParse(endpointUri, out endpoint)); Assert.AreEqual(expectedTransport, endpoint.Transport); }
public void TryParse_port_should_be_parsed() { RedFoxEndpoint endpoint; Assert.IsTrue(RedFoxEndpoint.TryParse("tcp://hostname:1234", out endpoint)); Assert.AreEqual(1234, endpoint.Port); }
public void TryParse_invalid_endpoint_returns_false(string invalidEndpoint) { RedFoxEndpoint endpoint; Assert.IsFalse(RedFoxEndpoint.TryParse(invalidEndpoint, out endpoint)); }