@@ -177,9 +177,9 @@ public void SqlLog()
177177 sessions . Statistics . Clear ( ) ;
178178 FillDb ( ) ;
179179 string logs = sl . GetWholeLog ( ) ;
180- Assert . That ( logs , Is . Not . StringContaining ( "Adding to batch" ) . IgnoreCase ) ;
181- Assert . That ( logs , Is . StringContaining ( "Batch command" ) . IgnoreCase ) ;
182- Assert . That ( logs , Is . StringContaining ( "INSERT" ) . IgnoreCase ) ;
180+ Assert . That ( logs , Does . Not . Contain ( "Adding to batch" ) . IgnoreCase ) ;
181+ Assert . That ( logs , Does . Contain ( "Batch command" ) . IgnoreCase ) ;
182+ Assert . That ( logs , Does . Contain ( "INSERT" ) . IgnoreCase ) ;
183183 }
184184 }
185185
@@ -201,13 +201,13 @@ public void AbstractBatcherLog()
201201 sessions . Statistics . Clear ( ) ;
202202 FillDb ( ) ;
203203 string logs = sl . GetWholeLog ( ) ;
204- Assert . That ( logs , Is . StringContaining ( "batch" ) . IgnoreCase ) ;
204+ Assert . That ( logs , Does . Contain ( "batch" ) . IgnoreCase ) ;
205205 foreach ( var loggingEvent in sl . Appender . GetEvents ( ) )
206206 {
207207 string message = loggingEvent . RenderedMessage ;
208208 if ( message . ToLowerInvariant ( ) . Contains ( "insert" ) )
209209 {
210- Assert . That ( message , Is . StringContaining ( "batch" ) . IgnoreCase ) ;
210+ Assert . That ( message , Does . Contain ( "batch" ) . IgnoreCase ) ;
211211 }
212212 }
213213 }
@@ -227,7 +227,7 @@ public void SqlLogShouldGetBatchCommandNotification()
227227 sessions . Statistics . Clear ( ) ;
228228 FillDb ( ) ;
229229 string logs = sl . GetWholeLog ( ) ;
230- Assert . That ( logs , Is . StringContaining ( "Batch commands:" ) . IgnoreCase ) ;
230+ Assert . That ( logs , Does . Contain ( "Batch commands:" ) . IgnoreCase ) ;
231231 }
232232 }
233233
@@ -257,8 +257,8 @@ public void AbstractBatcherLogFormattedSql()
257257 {
258258 if ( sqlLine . Contains ( "p0" ) )
259259 {
260- Assert . That ( sqlLine , Is . StringContaining ( "p1" ) ) ;
261- Assert . That ( sqlLine , Is . StringContaining ( "p2" ) ) ;
260+ Assert . That ( sqlLine , Does . Contain ( "p1" ) ) ;
261+ Assert . That ( sqlLine , Does . Contain ( "p2" ) ) ;
262262 }
263263 }
264264 }
@@ -270,4 +270,4 @@ public void AbstractBatcherLogFormattedSql()
270270 Cleanup ( ) ;
271271 }
272272 }
273- }
273+ }
0 commit comments