1
0
mirror of https://github.com/chylex/.NET-Community-Toolkit.git synced 2025-04-13 20:15:45 +02:00

Fixed unit tests to account for merged bugfix

This adjusts the tests following https://github.com/windows-toolkit/WindowsCommunityToolkit/pull/3951
This commit is contained in:
Sergio Pedri 2021-04-24 13:45:48 +02:00
parent 0d2a25f95b
commit c239aa9a35

View File

@ -605,7 +605,7 @@ public void Test_ReadOnlySpan2DT_TryGetSpan_From1DArray_2()
{
int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(1, 0, 3, 2);
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(1, 0, 2, 3);
bool success = span2d.TryGetSpan(out ReadOnlySpan<int> span);
@ -620,7 +620,7 @@ public void Test_ReadOnlySpan2DT_TryGetSpan_From1DArray_3()
{
int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(0, 1, 2, 3);
ReadOnlySpan2D<int> span2d = new ReadOnlySpan2D<int>(array, 3, 3).Slice(0, 1, 3, 2);
bool success = span2d.TryGetSpan(out ReadOnlySpan<int> span);