Merge pull request #1909 from esdrubal/reflection
[mono.git] / mcs / class / System / Test / System.ComponentModel / UInt16ConverterTests.cs
index ad6a982dee670f7a8a317009f85db1bd252a5a9a..dd60c8cdcb5db4c04554e2883df6f2b1c8937b97 100644 (file)
@@ -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
                }
        }
 }