Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void TryParse_port_should_be_parsed()
        {
            RedFoxEndpoint endpoint;

            Assert.IsTrue(RedFoxEndpoint.TryParse("tcp://hostname:1234", out endpoint));
            Assert.AreEqual(1234, endpoint.Port);
        }
Esempio n. 4
0
        public void TryParse_invalid_endpoint_returns_false(string invalidEndpoint)
        {
            RedFoxEndpoint endpoint;

            Assert.IsFalse(RedFoxEndpoint.TryParse(invalidEndpoint, out endpoint));
        }