From 4c231f2ab98e5b6923c1ea7347b92c2f1e2df43a Mon Sep 17 00:00:00 2001 From: Thibaud Desodt Date: Mon, 16 Oct 2017 07:44:16 +0200 Subject: [PATCH] Get rid of ParameterOnlyUsedForPreconditionCheck --- test/Serilog.Tests/MethodOverloadConventionTests.cs | 2 ++ test/Serilog.Tests/Parsing/MessageTemplateParserTests.cs | 1 + 2 files changed, 3 insertions(+) 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);