Beispiel #1
0
        public void ParseFromUri_returns_EndpointAddress(NamedPipeEndpointAddress testAddress)
        {
            var testUri = testAddress.ToUri();

            var address = NamedPipeEndpointAddress.ParseFromUri(testUri);

            Assert.That(address.Path, Is.EqualTo(testAddress.Path).IgnoreCase);
        }
Beispiel #2
0
        public void Valid_URI_can_be_cast_to_EndpointAddress(NamedPipeEndpointAddress testAddress)
        {
            var testUri = testAddress.ToUri();

            NamedPipeEndpointAddress address = testUri;

            Assert.That(address.Path, Is.EqualTo(testAddress.Path).IgnoreCase);
        }
Beispiel #3
0
 public void ToString_returns_formed_Uri(NamedPipeEndpointAddress testAddress)
 {
     Assert.That(testAddress.ToString(), Is.EqualTo($"Address: {testAddress.ToUri()}"));
 }