-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
817 additions
and
5 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
NetFabric.Hyperlinq.UnitTests/Partitioning/Skip/Skip.Array.Tests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using NetFabric.Assertive; | ||
using Xunit; | ||
|
||
namespace NetFabric.Hyperlinq.UnitTests | ||
{ | ||
public class SkipArrayTests | ||
{ | ||
[Theory] | ||
[MemberData(nameof(TestData.SkipEmpty), MemberType = typeof(TestData))] | ||
[MemberData(nameof(TestData.SkipSingle), MemberType = typeof(TestData))] | ||
[MemberData(nameof(TestData.SkipMultiple), MemberType = typeof(TestData))] | ||
public void Skip_With_ValidData_Should_Succeed(int[] source, int count) | ||
{ | ||
// Arrange | ||
var expected = System.Linq.Enumerable.Skip(source, count); | ||
|
||
// Act | ||
var result = Array.Skip(source, count); | ||
|
||
// Assert | ||
_ = result.Must() | ||
.BeEnumerableOf<int>() | ||
.BeEqualTo(expected); | ||
} | ||
} | ||
} |
Oops, something went wrong.