public void HostSpecificationBadPort() { var h = new HostSpecification("x") { Port = -3, }; }
public void HostSpecificationBadPort2() { var h = new HostSpecification("x") { Port = 0xfffff, }; }
public void HostSpecificationBadAcceptName2() { var h = new HostSpecification("x") { AcceptName = null, }; }
public void HostSpecificationBadAcceptName() { var h = new HostSpecification("x") { AcceptName = "=fred", }; }
public void HostSpecificationElaborate() { const string HostName = "1::2"; const int Port = 921; const string AcceptName = "blimey.farfle.net"; const string Lu1 = "FRED"; const string Lu2 = "BOB"; var h = new HostSpecification() { HostName = HostName, Port = Port, TlsTunnel = true, ValidateHostCertificate = false, LogicalUnits = new[] { Lu1, Lu2 }, AcceptName = AcceptName, }; Assert.AreEqual( "L:Y:" + Lu1 + "," + Lu2 + "@[" + HostName + "]:" + Port + "=" + AcceptName, h.ToString()); }
public void HostSpecificationEmptyHostName() { var h = new HostSpecification(" "); }
public void HostSpecificationBadHostName() { var h = new HostSpecification("x="); }
public void HostSpecificationTrivial() { var h = new HostSpecification("x"); Assert.AreEqual("x", h.ToString()); }
public void HostSpecificationBadLuName2() { var h = new HostSpecification("x"); h.AddLogicalUnitName(null); }