Fix ArgumentOutOfRangeException validation in GregorianCalendarTests.cs
authorStephen Toub <stoub@microsoft.com>
Thu, 21 Feb 2019 14:30:40 +0000 (09:30 -0500)
committerGitHub <noreply@github.com>
Thu, 21 Feb 2019 14:30:40 +0000 (09:30 -0500)
Commit migrated from https://github.com/dotnet/corefx/commit/07116a67cacaa2965479429a1bfd19fb60fcd53f

src/libraries/System.Globalization.Calendars/tests/System/Globalization/GregorianCalendarTests.cs

index 507e926..2470625 100644 (file)
@@ -50,7 +50,7 @@ namespace System.Globalization.Tests
         public void CalendarType_SetInvalidValue_ThrowsArgumentOutOfRangeException(GregorianCalendarTypes type)
         {
             GregorianCalendar calendar = ((GregorianCalendar)Calendar);
-            AssertExtensions.Throws<ArgumentOutOfRangeException>("m_type", () => calendar.CalendarType = type);
+            AssertExtensions.Throws<ArgumentOutOfRangeException>("value", "m_type", () => calendar.CalendarType = type);
         }
     }