@@ -83,7 +83,7 @@ public void MockFile_Copy_ShouldThrowArgumentNullExceptionWhenSourceIsNull_Messa
8383
8484 var exception = Assert . Throws < ArgumentNullException > ( ( ) => fileSystem . File . Copy ( null , destFilePath ) ) ;
8585
86- Assert . That ( exception . Message , Is . StringStarting ( "File name cannot be null." ) ) ;
86+ Assert . That ( exception . Message , Does . StartWith ( "File name cannot be null." ) ) ;
8787 }
8888
8989 [ Test ]
@@ -201,7 +201,7 @@ public void MockFile_Copy_ShouldThrowArgumentExceptionWhenSourceIsEmpty_Message(
201201
202202 var exception = Assert . Throws < ArgumentException > ( ( ) => fileSystem . File . Copy ( string . Empty , destFilePath ) ) ;
203203
204- Assert . That ( exception . Message , Is . StringStarting ( "Empty file name is not legal." ) ) ;
204+ Assert . That ( exception . Message , Does . StartWith ( "Empty file name is not legal." ) ) ;
205205 }
206206
207207 [ Test ]
@@ -224,7 +224,7 @@ public void MockFile_Copy_ShouldThrowArgumentExceptionWhenSourceIsStringOfBlanks
224224
225225 var exception = Assert . Throws < ArgumentException > ( ( ) => fileSystem . File . Copy ( sourceFilePath , destFilePath ) ) ;
226226
227- Assert . That ( exception . Message , Is . StringStarting ( "The path is not of a legal form." ) ) ;
227+ Assert . That ( exception . Message , Does . StartWith ( "The path is not of a legal form." ) ) ;
228228 }
229229
230230 [ Test ]
@@ -235,7 +235,7 @@ public void MockFile_Copy_ShouldThrowArgumentNullExceptionWhenTargetIsNull_Messa
235235
236236 var exception = Assert . Throws < ArgumentNullException > ( ( ) => fileSystem . File . Copy ( sourceFilePath , null ) ) ;
237237
238- Assert . That ( exception . Message , Is . StringStarting ( "File name cannot be null." ) ) ;
238+ Assert . That ( exception . Message , Does . StartWith ( "File name cannot be null." ) ) ;
239239 }
240240
241241 [ Test ]
@@ -258,7 +258,7 @@ public void MockFile_Copy_ShouldThrowArgumentExceptionWhenTargetIsStringOfBlanks
258258
259259 var exception = Assert . Throws < ArgumentException > ( ( ) => fileSystem . File . Copy ( sourceFilePath , destFilePath ) ) ;
260260
261- Assert . That ( exception . Message , Is . StringStarting ( "The path is not of a legal form." ) ) ;
261+ Assert . That ( exception . Message , Does . StartWith ( "The path is not of a legal form." ) ) ;
262262 }
263263
264264 [ Test ]
@@ -269,7 +269,7 @@ public void MockFile_Copy_ShouldThrowArgumentExceptionWhenTargetIsEmpty_Message(
269269
270270 var exception = Assert . Throws < ArgumentException > ( ( ) => fileSystem . File . Copy ( sourceFilePath , string . Empty ) ) ;
271271
272- Assert . That ( exception . Message , Is . StringStarting ( "Empty file name is not legal." ) ) ;
272+ Assert . That ( exception . Message , Does . StartWith ( "Empty file name is not legal." ) ) ;
273273 }
274274 }
275275}
0 commit comments