X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Ftests%2Fipaddress.cs;h=fbb7acb8654d2df0c9ae1d190a8741b46eddbf6e;hb=15c0640201fee8407c4a945077e4bc41446bcac7;hp=c6cf4e0f94a134fa938249b26e212c51cd783187;hpb=50732e092b5e271f15aa0f494ace5772ee6f2d47;p=mono.git diff --git a/mono/tests/ipaddress.cs b/mono/tests/ipaddress.cs index c6cf4e0f94a..fbb7acb8654 100644 --- a/mono/tests/ipaddress.cs +++ b/mono/tests/ipaddress.cs @@ -7,6 +7,17 @@ namespace T { public class T { public static int Main () { + + /* + Console.WriteLine ("address is " + IPAddress.NetworkToHostOrder (0x0100007f).ToString("X")); + */ + + IPAddress testadd = IPAddress.Parse ("127.0.0.1"); + Console.WriteLine("address is " + testadd.Address.ToString ("X")); + if (testadd.Address != 0x0100007f) + return 1; + + IPAddress hostadd = new IPAddress(0x0100007f); Console.WriteLine("address is " + hostadd.ToString()); if (hostadd.ToString() != "127.0.0.1")