* corlib_test.dll.sources: Added test for InternalVisibleToAttribute.
2009-06-10 Marek Safar <marek.safar@gmail.com>
svn path=/trunk/mcs/; revision=136898
+2009-06-25 Miguel de Icaza <miguel@novell.com>
+
+ * Int32.cs: Validate the NumberStyles, passes Int/Int32Parse2.exe
+
+ Fix regression introduced in 2005, we need to throw
+ ArgumentNullException on Parse.
+
2009-06-25 Miguel de Icaza <miguel@novell.com>
* Int32.cs: Fix regression introduced in 2005, we need to throw
"are permitted.");
return false;
}
+ } else if ((uint) style > (uint) NumberStyles.Any){
+ if (!tryParse)
+ exc = new ArgumentException ("Not a valid number style");
+ return false;
}
return true;
} catch (Exception e){
Assert ("C#40", typeof (ArgumentNullException) == e.GetType ());
}
+
+ try {
+ Int32.Parse ("123", (NumberStyles) 60000);
+ Fail ("C#41 Should raise an ArgumentException");
+ } catch (Exception e){
+ Assert ("C#42", typeof (ArgumentException) == e.GetType ());
+ }
}
#if NET_2_0