Skip to content

Commit

Permalink
Get rid of ParameterOnlyUsedForPreconditionCheck
Browse files Browse the repository at this point in the history
  • Loading branch information
tsimbalar committed Oct 16, 2017
1 parent ebf548c commit 4c231f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/Serilog.Tests/MethodOverloadConventionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions test/Serilog.Tests/Parsing/MessageTemplateParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4c231f2

Please sign in to comment.