File tree Expand file tree Collapse file tree
Take2/NuLog.Tests/Unit/Layouts/Standard Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -452,6 +452,28 @@ public void Should_HandleNullPropertyValue() {
452452 Assert . Equal ( "" , formatted ) ;
453453 }
454454
455+ [ Fact ( DisplayName = "Should_LoadSplitPathFromCache" ) ]
456+ public void Should_LoadSplitPathFromCache ( ) {
457+ // Not really a unit test, but just "touches" a line of code that we'd otherwise not
458+ // test. Setup
459+ var parms = new List < LayoutParameter >
460+ {
461+ new LayoutParameter
462+ {
463+ Path = "Enumerable"
464+ }
465+ } ;
466+ var logEvent = new LogEvent ( ) ;
467+ var paramParser = A . Fake < IPropertyParser > ( ) ;
468+
469+ // Build our layout
470+ var layout = GetLayout ( parms , paramParser ) ;
471+
472+ // Execute, twice, so that we hit the cache
473+ layout . Format ( logEvent ) ;
474+ layout . Format ( logEvent ) ;
475+ }
476+
455477 /// <summary>
456478 /// Get a new instance of the layout under test.
457479 /// </summary>
You can’t perform that action at this time.
0 commit comments