Skip to content

Commit

Permalink
Fix gap in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
neon-sunset committed Aug 11, 2022
1 parent 2e69e73 commit ebf4883
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions RangeExtensions.Tests/Helpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ internal static class AssertHelpers
if (!allowInherited)
{
Assert.Throws(exceptionType, () => expectedValueSource());
Assert.Throws(exceptionType, () => actualValueSource());
return;
}

Expand Down Expand Up @@ -52,6 +53,7 @@ internal static class AssertHelpers
if (!allowInherited)
{
Assert.Throws(exceptionType, () => expectedValueSource());
Assert.Throws(exceptionType, () => actualValueSource());
return;
}

Expand Down
3 changes: 2 additions & 1 deletion RangeExtensions.Tests/RangeEnumerable.ICollection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ static int[] CopyCollection<TCollection>(int index, TCollection collection)
{
AssertHelpers.EqualSequenceOrException(
() => CopyCollection(index, numbersArray),
() => CopyCollection(index, rangeEnumerable));
() => CopyCollection(index, rangeEnumerable),
allowInherited: true);
}
}

Expand Down

0 comments on commit ebf4883

Please sign in to comment.