We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9721ef4 commit 92f9e3aCopy full SHA for 92f9e3a
Code/Light.GuardClauses.Tests/StringAssertions/MustBeFileExtensionTests.cs
@@ -126,14 +126,12 @@ public static void CustomExceptionInvalidFileExtensions_Span(string invalidStrin
126
[Fact]
127
public static void CallerArgumentExpression_Span()
128
{
129
- // Act & Assert
130
var act = () =>
131
132
var invalidSpan = "txt".AsSpan();
133
invalidSpan.MustBeFileExtension();
134
};
135
136
- // Should throw with parameter name matching the variable name
137
act.Should().Throw<StringException>()
138
.WithParameterName("invalidSpan");
139
}
0 commit comments