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 3694910 commit 145d11bCopy full SHA for 145d11b
tests/BenchmarkDotNet.Tests/Validators/ExecutionValidatorTests.cs
@@ -303,7 +303,7 @@ public void NonPublicFieldsWithParamsAreDiscovered()
303
.ToList();
304
305
Assert.NotEmpty(validationErrors);
306
- Assert.StartsWith("Fields marked with [Params] must be public", validationErrors.Single().Message);
+ Assert.StartsWith($"Member \"{nameof(NonPublicFieldWithParams.Field)}\" must be public if it has the [Params]", validationErrors.Single().Message);
307
}
308
309
public class NonPublicFieldWithParams
0 commit comments