Пример #1
0
        public void ReturnsIisInformationWithHost()
        {
            var binding = new WebSiteBinding {
                Host = "example.com",
                Port = 4000,
                Path = null
            };

            Assert.That(binding.Information, Is.EqualTo("*:4000:example.com"));
        }
Пример #2
0
        public void ReturnsIisInformationWithIp()
        {
            var binding = new WebSiteBinding {
                IpAddress = new IPAddress(new byte[] {127, 0, 0, 1}),
                Port = 4000,
                Path = null
            };

            Assert.That(binding.Information, Is.EqualTo("127.0.0.1:4000:"));
        }