You've already forked linux-packaging-mono
Imported Upstream version 6.4.0.137
Former-commit-id: 943baa9f16a098c33e129777827f3a9d20da00d6
This commit is contained in:
parent
e9207cf623
commit
ef583813eb
@ -329,7 +329,7 @@ public class IPAddressTest
|
||||
Assert.Fail ("#1:" + i + " (" + ipAddress + ")");
|
||||
} catch (FormatException ex) {
|
||||
Assert.AreEqual (typeof (FormatException), ex.GetType (), "#2:" + i);
|
||||
Assert.IsNull (ex.InnerException, "#3:" + i);
|
||||
Assert.IsNotNull (ex.InnerException, "#3:" + i);
|
||||
Assert.IsNotNull (ex.Message, "#4:" + i);
|
||||
}
|
||||
}
|
||||
@ -534,7 +534,7 @@ public class IPAddressTest
|
||||
IPAddress i;
|
||||
Assert.IsTrue (IPAddress.TryParse ("0.0.0.0", out i), "#1");
|
||||
Assert.IsTrue (IPAddress.TryParse ("127.0.0.1", out i), "#2");
|
||||
Assert.IsFalse (IPAddress.TryParse ("www.mono-project.com", out i), "#3");
|
||||
Assert.IsFalse (IPAddress.TryParse ("www.example.com", out i), "#3");
|
||||
Assert.IsTrue (IPAddress.TryParse ("0001:0002:0003:0004:0005:0006:0007:0008", out i), "#4");
|
||||
Assert.IsTrue (IPAddress.TryParse ("1:2:3:4:5:6:7:8", out i), "#5");
|
||||
Assert.IsTrue (IPAddress.TryParse ("1::8", out i), "#6");
|
||||
@ -667,19 +667,6 @@ public class IPAddressTest
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Category ("NotDotNet")]
|
||||
public void UnixInterfaceNameAsZoneIndex ()
|
||||
{
|
||||
var ip = IPAddress.Parse ("fe80::bae8:56ff:fe47:af7e%en0");
|
||||
|
||||
// Should be en0 but it's of long type!
|
||||
Assert.AreEqual (0, ip.ScopeId);
|
||||
|
||||
Assert.AreEqual ("fe80::bae8:56ff:fe47:af7e", ip.ToString ());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user