X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem%2FTest%2FSystem.ComponentModel%2FDecimalConverterTests.cs;h=3dc3d92440b2d355a21d8e37e8ea0216a9765a65;hb=95dc4b45a2697b04c93fb8fdba2f4e48f1d8c2ee;hp=3c6475e2239beb238396747ff7fde82dafe7ffb6;hpb=c4aef31eeea309e6a795c84c098ac8e1a2490340;p=mono.git diff --git a/mcs/class/System/Test/System.ComponentModel/DecimalConverterTests.cs b/mcs/class/System/Test/System.ComponentModel/DecimalConverterTests.cs index 3c6475e2239..3dc3d92440b 100644 --- a/mcs/class/System/Test/System.ComponentModel/DecimalConverterTests.cs +++ b/mcs/class/System/Test/System.ComponentModel/DecimalConverterTests.cs @@ -367,6 +367,19 @@ 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 { + get { + NumberFormatInfo nfi = (NumberFormatInfo) base.NumberFormat.Clone (); + nfi.NegativeSign = "myNegativeSign"; + return nfi; + } + set { throw new NotSupportedException (); } + } +#endif } } }