Skip to content

Commit

Permalink
better missing UseVerify error
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Aug 10, 2024
1 parent f50d848 commit 0c3c4e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Verify.Xunit/Verifier.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ static InnerVerifier GetVerifier(VerifySettings settings, string sourceFile, boo
if (!UseVerifyAttribute.TryGet(out var method))
{
var fileName = Path.GetFileName(sourceFile);
throw new($"Expected to find a `[UseVerify]` on assembly. File: {fileName}.");
throw new($"Could not resolve the current test info. This feature uses Verify.Xunit.props to inject `[UseVerify]` on the assembly. File: {fileName}.");
}

if (useUniqueDirectory)
Expand Down

0 comments on commit 0c3c4e8

Please sign in to comment.