File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
src/Serilog.Ui.Core/Models
tests/Serilog.Ui.Web.Tests/OptionsBuilder Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ private static IEnumerable<string> RegisterRemovedColumns<T>()
67
67
var isPropRemoved = propertiesProperty ? . GetCustomAttribute < RemovedColumnAttribute > ( ) ;
68
68
if ( isPropRemoved is not null )
69
69
{
70
- yield return nameof ( LogModel . Exception ) ;
70
+ yield return nameof ( LogModel . Properties ) ;
71
71
}
72
72
}
73
73
}
Original file line number Diff line number Diff line change @@ -42,7 +42,10 @@ public void It_creates_entries_in_additional_columns()
42
42
var service = sut . Services . BuildServiceProvider ( ) . GetRequiredService < ProvidersOptions > ( ) ;
43
43
service . AdditionalColumns . Should ( ) . HaveCount ( 2 ) ;
44
44
service . AdditionalColumns . Should ( ) . ContainKeys ( "test" , "test2" ) ;
45
- service . AdditionalColumns . Values . Should ( ) . AllBeEquivalentTo ( _columnsInfoSample ) ;
45
+ service . AdditionalColumns . Values . Should ( )
46
+ . AllBeEquivalentTo ( _columnsInfoSample )
47
+ . And
48
+ . AllSatisfy ( s => s . RemovedColumns . Should ( ) . BeEquivalentTo ( [ nameof ( LogModel . Exception ) , nameof ( LogModel . Properties ) ] ) ) ;
46
49
}
47
50
48
51
[ Fact ]
@@ -57,4 +60,4 @@ public void It_registers_options_in_services()
57
60
}
58
61
59
62
private static SerilogUiOptionsBuilder GetBuilder ( ) => new ( new ServiceCollection ( ) ) ;
60
- }
63
+ }
You can’t perform that action at this time.
0 commit comments