Skip to content

Commit

Permalink
Fixed netfx System.Security.Cryptography.Xml.Tests fails on non-Engli…
Browse files Browse the repository at this point in the history
…sh Windows (dotnet/corefx#28316)

Commit migrated from dotnet/corefx@c0deeb3
  • Loading branch information
AlexRadch authored and stephentoub committed Mar 23, 2018
1 parent 6c1f181 commit f569bf7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ public void KeySize_Set_SetsValue(int value)
public void KeySize_SetNegativeValue_ThrowsArgumentOutOfRangeException(int value)
{
EncryptionMethod method = new EncryptionMethod();
if (PlatformDetection.IsFullFramework)
AssertExtensions.Throws<ArgumentOutOfRangeException>("The key size should be a non negative integer.", () => method.KeySize = value);
else
AssertExtensions.Throws<ArgumentOutOfRangeException>("value", () => method.KeySize = value);
AssertExtensions.Throws<ArgumentOutOfRangeException>("value", null, () => method.KeySize = value);
}

[Theory]
Expand Down

0 comments on commit f569bf7

Please sign in to comment.