Skip to content

Commit f82308c

Browse files
committed
Apply Rider suggestions
1 parent 2874864 commit f82308c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tests/Log4NetTextFormatterTest.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ public sealed class Log4NetTextFormatterTest : IDisposable
3636
/// </summary>
3737
private static DictionaryValue CreateDictionary()
3838
{
39-
return new DictionaryValue(new[]
40-
{
39+
return new DictionaryValue([
4140
new KeyValuePair<ScalarValue, LogEventPropertyValue>(new ScalarValue(1), new ScalarValue("one")),
4241
new KeyValuePair<ScalarValue, LogEventPropertyValue>(new ScalarValue("two"), new ScalarValue(2)),
43-
});
42+
]);
4443
}
4544

4645
private static LogEvent CreateLogEvent(LogEventLevel level = Events.LogEventLevel.Information, string messageTemplate = "Hello from Serilog", Exception? exception = null, params LogEventProperty[] properties)
@@ -365,7 +364,7 @@ public Task TwoPropertiesOneNull()
365364
using var output = new StringWriter();
366365
var logEvent = CreateLogEvent(properties: [
367366
new LogEventProperty("n/a", new ScalarValue(null)),
368-
new LogEventProperty("one", new ScalarValue(1))
367+
new LogEventProperty("one", new ScalarValue(1)),
369368
]);
370369
var formatter = new Log4NetTextFormatter();
371370

0 commit comments

Comments
 (0)