Skip to content

Commit

Permalink
Simplify test code
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrzajac committed Dec 4, 2024
1 parent df70206 commit 0f69ca5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void GivenUninitializedArgument_WhenTryGetEnumerableSingleTypeArgumentIsI
Type enumerableType = null;

// Act
Func<object> act = () => enumerableType.TryGetEnumerableSingleTypeArgument(out var itemType);
Func<object> act = () => enumerableType.TryGetEnumerableSingleTypeArgument(out _);

// Assert
act.Should().Throw<ArgumentNullException>()
Expand Down

0 comments on commit 0f69ca5

Please sign in to comment.