diff --git a/test/Serilog.Tests/MethodOverloadConventionTests.cs b/test/Serilog.Tests/MethodOverloadConventionTests.cs index 8e8300823..523ec05ba 100644 --- a/test/Serilog.Tests/MethodOverloadConventionTests.cs +++ b/test/Serilog.Tests/MethodOverloadConventionTests.cs @@ -501,6 +501,7 @@ void ForContextMethod4(MethodInfo method) TestForContextResult(method, logger, normalResult: enrichedLogger); } + // ReSharper disable once ParameterOnlyUsedForPreconditionCheck.Local void TestForContextResult(MethodInfo method, ILogger logger, object normalResult) { Assert.NotNull(normalResult); @@ -884,6 +885,7 @@ static object InvokeMethod( return method.Invoke(instance, parameters); } + // ReSharper disable once ParameterOnlyUsedForPreconditionCheck.Local static void EvaluateSingleResult(LogEventLevel level, CollectingSink results) { //evaluate single log event diff --git a/test/Serilog.Tests/Parsing/MessageTemplateParserTests.cs b/test/Serilog.Tests/Parsing/MessageTemplateParserTests.cs index fdbe8de05..9e68fd29c 100644 --- a/test/Serilog.Tests/Parsing/MessageTemplateParserTests.cs +++ b/test/Serilog.Tests/Parsing/MessageTemplateParserTests.cs @@ -11,6 +11,7 @@ static MessageTemplateToken[] Parse(string messsageTemplate) return new MessageTemplateParser().Parse(messsageTemplate).Tokens.ToArray(); } + // ReSharper disable once ParameterOnlyUsedForPreconditionCheck.Local static void AssertParsedAs(string message, params MessageTemplateToken[] messageTemplateTokens) { var parsed = Parse(message);