public void HttpsProtocolIsSetWhenSettingSsl() { var binding = new Binding("myhost", true); Assert.AreEqual("https", binding.Protocol); }
public void IpIsSet() { var binding = new Binding("myhost", "192.168.0.1"); Assert.AreEqual("192.168.0.1", binding.IPAddress); }
public void HostIsSet() { var binding = new Binding("myhost"); Assert.AreEqual("myhost", binding.Host); }
public void DefaultSslPort443IsSetWhenSpecifyingIp() { var binding = new Binding("myhost", "192.168.0.1", true); Assert.AreEqual(443, binding.Port); }
public void DefaultProtocolIsHttp() { var binding = new Binding(); Assert.AreEqual("http", binding.Protocol); }
public void DefaultPortIs80() { var binding = new Binding(); Assert.AreEqual(80, binding.Port); }
public void DefaultIPIsWilcard() { var binding = new Binding(); Assert.AreEqual("*", binding.IPAddress); }