X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FTest%2FSystem.ComponentModel%2FUInt16ConverterTests.cs;h=dd60c8cdcb5db4c04554e2883df6f2b1c8937b97;hb=3360de9221d7e4012822eb572abb41339c707645;hp=ad6a982dee670f7a8a317009f85db1bd252a5a9a;hpb=f99ce750ee781a2584e849a0264300fa4d99aaaa;p=mono.git diff --git a/mcs/class/System/Test/System.ComponentModel/UInt16ConverterTests.cs b/mcs/class/System/Test/System.ComponentModel/UInt16ConverterTests.cs index ad6a982dee6..dd60c8cdcb5 100644 --- a/mcs/class/System/Test/System.ComponentModel/UInt16ConverterTests.cs +++ b/mcs/class/System/Test/System.ComponentModel/UInt16ConverterTests.cs @@ -41,6 +41,7 @@ namespace MonoTests.System.ComponentModel { Assert.IsTrue (converter.CanConvertTo (typeof (string)), "#1"); Assert.IsFalse (converter.CanConvertTo (typeof (object)), "#2"); + Assert.IsTrue (converter.CanConvertTo (typeof (int)), "#3"); } [Test] @@ -245,7 +246,6 @@ namespace MonoTests.System.ComponentModel return base.GetFormat (formatType); } } -#if NET_2_0 // adding this override in 1.x shows different result in .NET (it is ignored). // Some compatibility kids might want to fix this issue. public override NumberFormatInfo NumberFormat { @@ -256,7 +256,6 @@ namespace MonoTests.System.ComponentModel } set { throw new NotSupportedException (); } } -#endif } } }