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 @@ -104,7 +104,8 @@ public void SettingPropertyFilterToNullThrowsArgumentNullException()
104
104
105
105
// Assert
106
106
action . Should ( ) . ThrowExactly < ArgumentNullException > ( )
107
- . Which . Message . Should ( ) . StartWith ( "The FilterProperty option can not be null." ) ;
107
+ . WithMessage ( "The FilterProperty option can not be null.*" )
108
+ . And . ParamName . Should ( ) . Be ( "filterProperty" ) ;
108
109
}
109
110
110
111
[ Fact ]
@@ -144,7 +145,8 @@ public void SettingExceptionFormatterToNullThrowsArgumentNullException()
144
145
145
146
// Assert
146
147
action . Should ( ) . ThrowExactly < ArgumentNullException > ( )
147
- . Which . Message . Should ( ) . StartWith ( "The FormatException option can not be null." ) ;
148
+ . WithMessage ( "The FormatException option can not be null.*" )
149
+ . And . ParamName . Should ( ) . Be ( "formatException" ) ;
148
150
}
149
151
}
150
152
}
You can’t perform that action at this time.
0 commit comments