Пример #1
0
 public TransportException(URIish uri, string s, Exception cause)
     : base(uri.SetPass(null) + ": " + s, cause)
 {
 }
Пример #2
0
 public void test015_SshProtoWithUserPassAndPort()
 {
     const string str = "ssh://*****:*****@example.com:33/some/p ath";
     URIish u = new URIish(str);
     Assert.AreEqual("ssh", u.Scheme);
     Assert.True(u.IsRemote);
     Assert.AreEqual("/some/p ath", u.Path);
     Assert.AreEqual("example.com", u.Host);
     Assert.AreEqual("user", u.User);
     Assert.AreEqual("pass", u.Pass);
     Assert.AreEqual(33, u.Port);
     Assert.AreEqual(str, u.ToPrivateString());
     Assert.AreEqual(u.SetPass(null).ToPrivateString(), u.ToString());
     Assert.AreEqual(u, new URIish(str));
 }
Пример #3
0
 public TransportException(URIish uri, string s)
     : base(uri.SetPass(null) + ": " + s)
 {
 }