File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -328,15 +328,16 @@ public void RetrievingTheStatusWithoutIncludeIgnoredIgnoresButDoesntInclude()
328
328
const string relativePath = "look-ma.txt" ;
329
329
Touch ( repo . Info . WorkingDirectory , relativePath , "I'm going to be ignored!" ) ;
330
330
var opt = new StatusOptions { IncludeIgnored = false } ;
331
+ Assert . False ( opt . IncludeIgnored ) ;
331
332
RepositoryStatus status = repo . RetrieveStatus ( opt ) ;
332
333
Assert . Equal ( new [ ] { relativePath } , status . Untracked . Select ( s => s . FilePath ) ) ;
333
334
334
335
Touch ( repo . Info . WorkingDirectory , ".gitignore" , "*.txt" + Environment . NewLine ) ;
335
336
336
- RepositoryStatus newStatus = repo . RetrieveStatus ( ) ;
337
+ RepositoryStatus newStatus = repo . RetrieveStatus ( opt ) ;
337
338
Assert . Equal ( ".gitignore" , newStatus . Untracked . Select ( s => s . FilePath ) . Single ( ) ) ;
338
339
339
- Assert . False ( newStatus . Ignored . Any ( ) ) ;
340
+ Assert . False ( newStatus . Ignored . Any ( ) , string . Format ( "had ignored {0}" , newStatus . Ignored . First ( ) . FilePath ) ) ;
340
341
}
341
342
}
342
343
You can’t perform that action at this time.
0 commit comments