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 HostSpecificationTrivial() { var h = new HostSpecification("x"); Assert.AreEqual("x", h.ToString()); }