File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ public void NullLogEventThrowsArgumentNullException()
78
78
Action action = ( ) => formatter . Format ( null ! , TextWriter . Null ) ;
79
79
80
80
// Assert
81
- action . Should ( ) . ThrowExactly < ArgumentNullException > ( ) . Which . ParamName . Should ( ) . Be ( "logEvent" ) ;
81
+ action . Should ( ) . ThrowExactly < ArgumentNullException > ( ) . WithParameterName ( "logEvent" )
82
+ . Which . StackTrace ! . TrimStart ( ) . Should ( ) . StartWith ( "at Serilog.Formatting.Log4Net.Log4NetTextFormatter.Format" ) ;
82
83
}
83
84
84
85
[ Fact ]
@@ -92,7 +93,8 @@ public void NullOutputThrowsArgumentNullException()
92
93
Action action = ( ) => formatter . Format ( logEvent , null ! ) ;
93
94
94
95
// Assert
95
- action . Should ( ) . ThrowExactly < ArgumentNullException > ( ) . Which . ParamName . Should ( ) . Be ( "output" ) ;
96
+ action . Should ( ) . ThrowExactly < ArgumentNullException > ( ) . WithParameterName ( "output" )
97
+ . Which . StackTrace ! . TrimStart ( ) . Should ( ) . StartWith ( "at Serilog.Formatting.Log4Net.Log4NetTextFormatter.Format" ) ;
96
98
}
97
99
98
100
[ Fact ]
You can’t perform that action at this time.
0 commit comments