Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@TylerBrinkley
Copy link

@TylerBrinkley TylerBrinkley commented Sep 6, 2019

Throws proper exception.

@danmosemsft

Copy link
Member

@danmoseley danmoseley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@danmoseley
Copy link
Member

Oh, we forgot it is necessary to update https://github.com/dotnet/coreclr/blob/master/tests/CoreFX/CoreFX.issues.rsp to make the tests pass. That is because it is running the CoreFX tests that do not have your change (and it appears there is a test for it)

Assert.Throws() Failure\r\nExpected: typeof(System.ArgumentException)\r\nActual: typeof(System.ArgumentNullException): Value cannot be null. (Parameter 'culture')\r\n---- System.ArgumentNullException : Value cannot be null. (Parameter 'culture')

Stack trace
   at System.StringComparer.Create(CultureInfo culture, CompareOptions options) in /_/src/System.Private.CoreLib/shared/System/StringComparer.cs:line 64
   at System.Tests.StringComparerTests.<>c.<CreateCultureOptions_InvalidArguments_Throws>b__7_0() in /_/src/System.Runtime/tests/System/StringComparerTests.netcoreapp.cs:line 15
----- Inner Stack Trace -----
   at System.StringComparer.Create(CultureInfo culture, CompareOptions options) in /_/src/System.Private.CoreLib/shared/System/StringComparer.cs:line 64
   at System.Tests.StringComparerTests.<>c.<CreateCultureOptions_InvalidArguments_Throws>b__7_0() in /_/src/System.Runtime/tests/System/StringComparerTests.netcoreapp.cs:line 15

@danmoseley
Copy link
Member

We're planning to merge the corefx/coreclr repos so this coordination problem will go away at that point.

@stephentoub stephentoub merged commit 69ff008 into dotnet:master Sep 10, 2019
@TylerBrinkley TylerBrinkley deleted the patch-1 branch September 10, 2019 01:11
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
…r#26570)

* Make StringComparer.Create throw ArgumentNullException

Throws proper exception.

* Update CoreFX.issues.rsp


Commit migrated from dotnet/coreclr@69ff008
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants