Skip to content

Commit

Permalink
[master] Update dependencies from dotnet/coreclr (dotnet/corefx#41926)
Browse files Browse the repository at this point in the history
* Update dependencies from https://github.com/dotnet/coreclr build 20191019.1

- Microsoft.NET.Sdk.IL - 5.0.0-alpha1.19519.1
- Microsoft.NETCore.ILAsm - 5.0.0-alpha1.19519.1
- Microsoft.NETCore.Runtime.CoreCLR - 5.0.0-alpha1.19519.1

* Update argument names for CoreLib change


Commit migrated from dotnet/corefx@8d87e5c
  • Loading branch information
dotnet-maestro[bot] authored Oct 20, 2019
1 parent 7c8749e commit 680bfac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/libraries/System.Runtime/tests/System/BufferTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ public static void BlockCopy_Invalid()
AssertExtensions.Throws<ArgumentException>("src", () => Buffer.BlockCopy(new string[3], 0, new byte[3], 0, 0)); // Src is not a byte array
AssertExtensions.Throws<ArgumentException>("dst", "dest", () => Buffer.BlockCopy(new byte[3], 0, new string[3], 0, 0)); // Dst is not a byte array

AssertExtensions.Throws<ArgumentException>("", () => Buffer.BlockCopy(new byte[3], 3, new byte[3], 0, 1)); // SrcOffset + count >= src.length
AssertExtensions.Throws<ArgumentException>("", () => Buffer.BlockCopy(new byte[3], 4, new byte[3], 0, 0)); // SrcOffset >= src.Length
AssertExtensions.Throws<ArgumentException>(null, () => Buffer.BlockCopy(new byte[3], 3, new byte[3], 0, 1)); // SrcOffset + count >= src.length
AssertExtensions.Throws<ArgumentException>(null, () => Buffer.BlockCopy(new byte[3], 4, new byte[3], 0, 0)); // SrcOffset >= src.Length

AssertExtensions.Throws<ArgumentException>("", () => Buffer.BlockCopy(new byte[3], 0, new byte[3], 3, 1)); // DstOffset + count >= dst.Length
AssertExtensions.Throws<ArgumentException>("", () => Buffer.BlockCopy(new byte[3], 0, new byte[3], 4, 0)); // DstOffset >= dst.Length
AssertExtensions.Throws<ArgumentException>(null, () => Buffer.BlockCopy(new byte[3], 0, new byte[3], 3, 1)); // DstOffset + count >= dst.Length
AssertExtensions.Throws<ArgumentException>(null, () => Buffer.BlockCopy(new byte[3], 0, new byte[3], 4, 0)); // DstOffset >= dst.Length
}

public static unsafe IEnumerable<object[]> ByteLength_TestData()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public static void GetBytes_ZeroLength()
{
using (var deriveBytes = new PasswordDeriveBytes(TestPassword, s_testSalt))
{
AssertExtensions.Throws<ArgumentException>("", () => deriveBytes.GetBytes(0));
AssertExtensions.Throws<ArgumentException>(null, () => deriveBytes.GetBytes(0));
}
}

Expand Down

0 comments on commit 680bfac

Please sign in to comment.