File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
test/Serilog.Settings.Configuration.Tests Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -492,6 +492,30 @@ public void SinkWithIntArrayArgument()
492
492
Assert . Equal ( 1 , DummyRollingFileSink . Emitted . Count ) ;
493
493
}
494
494
495
+ [ Trait ( "Bugfix" , "#111" ) ]
496
+ [ Fact ]
497
+ public void CaseInsensitiveArgumentNameMatching ( )
498
+ {
499
+ var json = @"{
500
+ ""Serilog"": {
501
+ ""Using"": [""TestDummies""],
502
+ ""WriteTo"": [{
503
+ ""Name"": ""DummyRollingFile"",
504
+ ""Args"": {""PATHFORMAT"" : ""C:\\""}
505
+ }]
506
+ }
507
+ }" ;
508
+
509
+ var log = ConfigFromJson ( json )
510
+ . CreateLogger ( ) ;
511
+
512
+ DummyRollingFileSink . Emitted . Clear ( ) ;
513
+
514
+ log . Write ( Some . InformationEvent ( ) ) ;
515
+
516
+ Assert . Equal ( 1 , DummyRollingFileSink . Emitted . Count ) ;
517
+ }
518
+
495
519
[ Trait ( "Bugfix" , "#91" ) ]
496
520
[ Fact ]
497
521
public void WriteToLoggerWithRestrictedToMinimumLevelIsSupported ( )
You can’t perform that action at this time.
0 commit comments