diff options
3 files changed, 7 insertions, 7 deletions
diff --git a/mcs/class/Mono.Options/Test/Mono.Options/OptionContextTest.cs b/mcs/class/Mono.Options/Test/Mono.Options/OptionContextTest.cs index ec3fb02270f..09ffecbc1e9 100644 --- a/mcs/class/Mono.Options/Test/Mono.Options/OptionContextTest.cs +++ b/mcs/class/Mono.Options/Test/Mono.Options/OptionContextTest.cs @@ -56,7 +56,7 @@ namespace MonoTests.Mono.Options c, v => { string ignore = v.OptionValues [0]; }); c.Option = p [0]; Utils.AssertException (typeof(ArgumentOutOfRangeException), - "Argument is out of range.\nParameter name: index", + "Specified argument was out of the range of valid values.\nParameter name: index", c, v => { string ignore = v.OptionValues [2]; }); c.OptionName = "-a"; Utils.AssertException (typeof(OptionException), diff --git a/mcs/class/Mono.Options/Test/Mono.Options/OptionSetTest.cs b/mcs/class/Mono.Options/Test/Mono.Options/OptionSetTest.cs index 688297a0f68..a66f2784989 100644 --- a/mcs/class/Mono.Options/Test/Mono.Options/OptionSetTest.cs +++ b/mcs/class/Mono.Options/Test/Mono.Options/OptionSetTest.cs @@ -354,10 +354,10 @@ namespace MonoTests.Mono.Options p, v => { v.Parse (_("-a", "-b")); }); Assert.AreEqual (a, "-b"); Utils.AssertException (typeof(ArgumentNullException), - "Argument cannot be null.\nParameter name: option", + "Value cannot be null.\nParameter name: option", p, v => { v.Add ((Option) null); }); Utils.AssertException (typeof(ArgumentNullException), - "Argument cannot be null.\nParameter name: header", + "Value cannot be null.\nParameter name: header", p, v => { v.Add ((string) null); }); // bad type @@ -374,7 +374,7 @@ namespace MonoTests.Mono.Options p, v => { v.Parse (_("-cz", "extra")); }); Utils.AssertException (typeof(ArgumentNullException), - "Argument cannot be null.\nParameter name: action", + "Value cannot be null.\nParameter name: action", p, v => { v.Add ("foo", (Action<string>) null); }); Utils.AssertException (typeof(ArgumentException), "Cannot provide maxValueCount of 2 for OptionValueType.None.\nParameter name: maxValueCount", @@ -752,7 +752,7 @@ namespace MonoTests.Mono.Options Utils.AssertException (typeof(ArgumentException), "prototypes must be null!", p, v => { v.Add ("N|NUM=", (int n) => {}); }); Utils.AssertException (typeof(ArgumentNullException), - "Argument cannot be null.\nParameter name: option", + "Value cannot be null.\nParameter name: option", p, v => { v.GetOptionForName (null); }); } diff --git a/mcs/class/Mono.Options/Test/Mono.Options/OptionTest.cs b/mcs/class/Mono.Options/Test/Mono.Options/OptionTest.cs index fad1b484784..999e6f45b61 100644 --- a/mcs/class/Mono.Options/Test/Mono.Options/OptionTest.cs +++ b/mcs/class/Mono.Options/Test/Mono.Options/OptionTest.cs @@ -66,7 +66,7 @@ namespace MonoTests.Mono.Options { object p = null; Utils.AssertException (typeof(ArgumentNullException), - "Argument cannot be null.\nParameter name: prototype", + "Value cannot be null.\nParameter name: prototype", p, v => { new DefaultOption (null, null); }); Utils.AssertException (typeof(ArgumentException), "Cannot be the empty string.\nParameter name: prototype", @@ -91,7 +91,7 @@ namespace MonoTests.Mono.Options Utils.AssertException (null, null, p, v => { new DefaultOption ("a|b=", null, 2); }); Utils.AssertException (typeof(ArgumentOutOfRangeException), - "Argument is out of range.\nParameter name: maxValueCount", + "Specified argument was out of the range of valid values.\nParameter name: maxValueCount", p, v => { new DefaultOption ("a", null, -1); }); Utils.AssertException (typeof(ArgumentException), "Cannot provide maxValueCount of 0 for OptionValueType.Required or " + |