[Mono.Options] Fix test and add suite to CI (#4963)
[mono.git] / mcs / class / Mono.Options / Test / Mono.Options / OptionContextTest.cs
index ce25980dd46c0394f230684ef92ccdef378ec4b5..362d3ea61a1742e9b08d8654829d0b6b228fb248 100644 (file)
@@ -31,7 +31,7 @@ using System;
 #if NDESK_OPTIONS
 using NDesk.Options;
 #else
-using Mono.Options
+using Mono.Options;
 #endif
 
 using NUnit.Framework;
@@ -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),