Skip to content

Commit

Permalink
Clean up Distinct tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
bartdesmet committed Feb 27, 2019
1 parent afda630 commit f0e8a53
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void Distinct_Null()
}

[Fact]
public async Task Distinct1()
public async Task Distinct_Simple()
{
var xs = new[] { 1, 2, 1, 3, 5, 2, 1, 4 }.ToAsyncEnumerable().Distinct();

Expand All @@ -34,7 +34,7 @@ public async Task Distinct1()
}

[Fact]
public async Task Distinct2()
public async Task Distinct_Comparer()
{
var xs = new[] { 1, -2, -1, 3, 5, 2, 1, 4 }.ToAsyncEnumerable().Distinct(new Eq());

Expand All @@ -48,7 +48,7 @@ public async Task Distinct2()
}

[Fact]
public async Task Distinct3()
public async Task Distinct_ToArray()
{
var xs = new[] { 1, 2, 1, 3, 5, 2, 1, 4 }.ToAsyncEnumerable().Distinct();

Expand All @@ -57,7 +57,7 @@ public async Task Distinct3()
}

[Fact]
public async Task Distinct4()
public async Task Distinct_ToList()
{
var xs = new[] { 1, 2, 1, 3, 5, 2, 1, 4 }.ToAsyncEnumerable().Distinct();

Expand All @@ -66,23 +66,23 @@ public async Task Distinct4()
}

[Fact]
public async Task Distinct5()
public async Task Distinct_Count()
{
var xs = new[] { 1, 2, 1, 3, 5, 2, 1, 4 }.ToAsyncEnumerable().Distinct();

Assert.Equal(5, await xs.CountAsync());
}

[Fact]
public async Task Distinct10()
public async Task Distinct_SequenceIdentity()
{
var xs = new[] { 1, 2, 1, 3, 5, 2, 1, 4 }.ToAsyncEnumerable().Distinct();

await SequenceIdentity(xs);
}

[Fact]
public async Task Distinct12()
public async Task Distinct_Empty()
{
var xs = AsyncEnumerable.Empty<int>().Distinct();

Expand Down

0 comments on commit f0e8a53

Please sign in to comment.