Skip to content

Commit

Permalink
Rename delegate to NullableSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmada committed Jun 13, 2020
1 parent 6cff8e9 commit 8b8102a
Show file tree
Hide file tree
Showing 174 changed files with 791 additions and 791 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void ToArray_With_PredicateAt_Must_Succeed(int[] source, PredicateAt<int>
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_With_Selector_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -76,7 +76,7 @@ public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, strin
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -98,7 +98,7 @@ public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, s
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public void ToArray_Selector_With_Null_Must_Throw()
// Arrange
var source = new int[0];
var wrapped = Wrap.AsValueReadOnlyList(source);
var selector = (Selector<int, string>)null;
var selector = (NullableSelector<int, string>)null;

// Act
Action action = () => _ = ReadOnlyListExtensions
Expand All @@ -234,7 +234,7 @@ public void ToArray_Selector_With_Null_Must_Throw()
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_With_Selector_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap.AsValueReadOnlyList(source);
Expand All @@ -257,7 +257,7 @@ public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, strin
[MemberData(nameof(TestData.SkipTakeSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SkipTakeSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SkipTakeSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_Skip_Take_Selector_With_ValidData_Must_Succeed(int[] source, int skipCount, int takeCount, Selector<int, string> selector)
public void ToArray_Skip_Take_Selector_With_ValidData_Must_Succeed(int[] source, int skipCount, int takeCount, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap.AsValueReadOnlyList(source);
Expand Down Expand Up @@ -286,7 +286,7 @@ public void ToArray_SelectorAt_With_Null_Must_Throw()
// Arrange
var source = new int[0];
var wrapped = Wrap.AsValueReadOnlyList(source);
var selector = (SelectorAt<int, string>)null;
var selector = (NullableSelectorAt<int, string>)null;

// Act
Action action = () => _ = ReadOnlyListExtensions
Expand All @@ -303,7 +303,7 @@ public void ToArray_SelectorAt_With_Null_Must_Throw()
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var wrapped = Wrap.AsValueReadOnlyList(source);
Expand All @@ -326,7 +326,7 @@ public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, s
[MemberData(nameof(TestData.SkipTakeSelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SkipTakeSelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SkipTakeSelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_Skip_Take_SelectorAt_With_ValidData_Must_Succeed(int[] source, int skipCount, int takeCount, SelectorAt<int, string> selector)
public void ToArray_Skip_Take_SelectorAt_With_ValidData_Must_Succeed(int[] source, int skipCount, int takeCount, NullableSelectorAt<int, string> selector)
{
// Arrange
var wrapped = Wrap.AsValueReadOnlyList(source);
Expand All @@ -353,7 +353,7 @@ public void ToArray_Skip_Take_SelectorAt_With_ValidData_Must_Succeed(int[] sourc
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap.AsValueReadOnlyList(source);
Expand All @@ -378,7 +378,7 @@ public void ToArray_Predicate_Selector_With_ValidData_Must_Succeed(int[] source,
[MemberData(nameof(TestData.SkipTakePredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SkipTakePredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SkipTakePredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_Skip_Take_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, int skipCount, int takeCount, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_Skip_Take_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, int skipCount, int takeCount, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap.AsValueReadOnlyList(source);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void ToArray_With_PredicateAt_Must_Succeed(int[] source, PredicateAt<int>
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_With_Selector_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -76,7 +76,7 @@ public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, strin
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -98,7 +98,7 @@ public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, s
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void ToArray_With_PredicateAt_Must_Succeed(int[] source, PredicateAt<int>
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_With_Selector_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -76,7 +76,7 @@ public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, strin
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -98,7 +98,7 @@ public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, s
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void ToArray_With_PredicateAt_Must_Succeed(int[] source, PredicateAt<int>
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_With_Selector_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -76,7 +76,7 @@ public void ToArray_With_Selector_Must_Succeed(int[] source, Selector<int, strin
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_With_SelectorAt_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var expected =
Expand All @@ -98,7 +98,7 @@ public void ToArray_With_SelectorAt_Must_Succeed(int[] source, SelectorAt<int, s
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_With_Predicate_Selector_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var expected =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void ToArray_PredicateAt_With_ValidData_Must_Succeed(int[] source, Predic
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_Selector_With_ValidData_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_Selector_With_ValidData_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand All @@ -126,7 +126,7 @@ public void ToArray_Selector_With_ValidData_Must_Succeed(int[] source, Selector<
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_SelectorAt_With_ValidData_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_SelectorAt_With_ValidData_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand All @@ -151,7 +151,7 @@ public void ToArray_SelectorAt_With_ValidData_Must_Succeed(int[] source, Selecto
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public void ToArray_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void ToArray_With_ValidData_Collections_Must_Succeed(int[] source)
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public void ToArray_Predicate_With_ValidData_Must_Succeed(int[] source, Selector<int, string> selector)
public void ToArray_Predicate_With_ValidData_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand All @@ -78,7 +78,7 @@ public void ToArray_Predicate_With_ValidData_Must_Succeed(int[] source, Selector
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public void ToArray_SelectorAt_With_ValidData_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public void ToArray_SelectorAt_With_ValidData_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public async ValueTask ToArrayAsync_PredicateAt_With_ValidData_Must_Succeed(int[
[MemberData(nameof(TestData.SelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorMultiple), MemberType = typeof(TestData))]
public async ValueTask ToArrayAsync_Selector_With_ValidData_Must_Succeed(int[] source, Selector<int, string> selector)
public async ValueTask ToArrayAsync_Selector_With_ValidData_Must_Succeed(int[] source, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand All @@ -105,7 +105,7 @@ public async ValueTask ToArrayAsync_Selector_With_ValidData_Must_Succeed(int[] s
[MemberData(nameof(TestData.SelectorAtEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.SelectorAtMultiple), MemberType = typeof(TestData))]
public async ValueTask ToArrayAsync_SelectorAt_With_ValidData_Must_Succeed(int[] source, SelectorAt<int, string> selector)
public async ValueTask ToArrayAsync_SelectorAt_With_ValidData_Must_Succeed(int[] source, NullableSelectorAt<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand All @@ -130,7 +130,7 @@ public async ValueTask ToArrayAsync_SelectorAt_With_ValidData_Must_Succeed(int[]
[MemberData(nameof(TestData.PredicateSelectorEmpty), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorSingle), MemberType = typeof(TestData))]
[MemberData(nameof(TestData.PredicateSelectorMultiple), MemberType = typeof(TestData))]
public async ValueTask ToArrayAsync_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, Predicate<int> predicate, Selector<int, string> selector)
public async ValueTask ToArrayAsync_Predicate_Selector_With_ValidData_Must_Succeed(int[] source, Predicate<int> predicate, NullableSelector<int, string> selector)
{
// Arrange
var wrapped = Wrap
Expand Down
Loading

0 comments on commit 8b8102a

Please sign in to comment.