diff options
author | Hugh Bellamy <hughbellars@gmail.com> | 2017-06-28 07:13:26 +0300 |
---|---|---|
committer | Dan Moseley <danmose@microsoft.com> | 2017-06-28 07:13:26 +0300 |
commit | 868f123881e520285ab09600380e38abdd457a06 (patch) | |
tree | 903d842b19e0033c9f3666138d03b78e099f0a6f /src/System.Security.Cryptography.Encoding | |
parent | 310d2d5d455d40c265a873caad8612302c699c39 (diff) |
Convert Assert.Throws<ArgumentException> to AssertExtensions (#21491)
Diffstat (limited to 'src/System.Security.Cryptography.Encoding')
-rw-r--r-- | src/System.Security.Cryptography.Encoding/tests/Base64TransformsTests.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/System.Security.Cryptography.Encoding/tests/Base64TransformsTests.cs b/src/System.Security.Cryptography.Encoding/tests/Base64TransformsTests.cs index 37fde07d3b..91ba4f863e 100644 --- a/src/System.Security.Cryptography.Encoding/tests/Base64TransformsTests.cs +++ b/src/System.Security.Cryptography.Encoding/tests/Base64TransformsTests.cs @@ -78,13 +78,13 @@ namespace System.Security.Cryptography.Encoding.Tests AssertExtensions.Throws<ArgumentNullException>("inputBuffer", () => transform.TransformBlock(null, 0, 0, null, 0)); AssertExtensions.Throws<ArgumentOutOfRangeException>("inputOffset", () => transform.TransformBlock(Array.Empty<byte>(), -1, 0, null, 0)); AssertExtensions.Throws<ArgumentNullException>("dst", () => transform.TransformBlock(data_4bytes, 0, 4, null, 0)); - Assert.Throws<ArgumentException>(null, () => transform.TransformBlock(Array.Empty<byte>(), 0, 1, null, 0)); - Assert.Throws<ArgumentException>(null, () => transform.TransformBlock(Array.Empty<byte>(), 1, 0, null, 0)); + AssertExtensions.Throws<ArgumentException>(null, () => transform.TransformBlock(Array.Empty<byte>(), 0, 1, null, 0)); + AssertExtensions.Throws<ArgumentException>(null, () => transform.TransformBlock(Array.Empty<byte>(), 1, 0, null, 0)); AssertExtensions.Throws<ArgumentNullException>("inputBuffer", () => transform.TransformFinalBlock(null, 0, 0)); AssertExtensions.Throws<ArgumentOutOfRangeException>("inputOffset", () => transform.TransformFinalBlock(Array.Empty<byte>(), -1, 0)); AssertExtensions.Throws<ArgumentOutOfRangeException>("inputOffset", () => transform.TransformFinalBlock(Array.Empty<byte>(), -1, 0)); - Assert.Throws<ArgumentException>(null, () => transform.TransformFinalBlock(Array.Empty<byte>(), 1, 0)); + AssertExtensions.Throws<ArgumentException>(null, () => transform.TransformFinalBlock(Array.Empty<byte>(), 1, 0)); } [Theory, MemberData(nameof(TestData_Ascii))] |