File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -234,5 +234,13 @@ public void CloningWithoutWorkdirPathThrows(string url)
234234 {
235235 Assert . Throws < ArgumentNullException > ( ( ) => Repository . Clone ( url , null ) ) ;
236236 }
237+
238+ [ Fact ]
239+ public void CloningWithoutUrlThrows ( )
240+ {
241+ var scd = BuildSelfCleaningDirectory ( ) ;
242+
243+ Assert . Throws < ArgumentNullException > ( ( ) => Repository . Clone ( null , scd . DirectoryPath ) ) ;
244+ }
237245 }
238246}
Original file line number Diff line number Diff line change @@ -538,6 +538,7 @@ public static string Discover(string startingPath)
538538 public static string Clone ( string sourceUrl , string workdirPath ,
539539 CloneOptions options = null )
540540 {
541+ Ensure . ArgumentNotNull ( sourceUrl , "sourceUrl" ) ;
541542 Ensure . ArgumentNotNull ( workdirPath , "workdirPath" ) ;
542543
543544 options = options ?? new CloneOptions ( ) ;
You can’t perform that action at this time.
0 commit comments