[Mono.Options] Fix test and add suite to CI (#4963)
[mono.git] / mcs / class / Mono.Options / Test / Mono.Options / OptionContextTest.cs
index 8eb61b2c93b4f49c94c95b3e3b94e2f509982883..362d3ea61a1742e9b08d8654829d0b6b228fb248 100644 (file)
@@ -39,7 +39,7 @@ using NUnit.Framework;
 #if NDESK_OPTIONS
 namespace Tests.NDesk.Options
 #else
-namespace Tests.Mono.Options
+namespace MonoTests.Mono.Options
 #endif
 {
        [TestFixture]
@@ -56,7 +56,7 @@ namespace Tests.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.{Environment.NewLine}Parameter name: index",
                                        c, v => { string ignore = v.OptionValues [2]; });
                        c.OptionName = "-a";
                        Utils.AssertException (typeof(OptionException),