Skip to content

Commit 145d11b

Browse files
committed
Fix tests
1 parent 3694910 commit 145d11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void NonPublicFieldsWithParamsAreDiscovered()
303303
.ToList();
304304

305305
Assert.NotEmpty(validationErrors);
306-
Assert.StartsWith("Fields marked with [Params] must be public", validationErrors.Single().Message);
306+
Assert.StartsWith($"Member \"{nameof(NonPublicFieldWithParams.Field)}\" must be public if it has the [Params]", validationErrors.Single().Message);
307307
}
308308

309309
public class NonPublicFieldWithParams

0 commit comments

Comments
 (0)