@@ -303,6 +303,45 @@ public void ShouldSortOutputCorrectly2()
303
303
} ) ;
304
304
}
305
305
306
+ public void ShouldSortOutputCorrectly3 ( )
307
+ {
308
+ var output = new [ ]
309
+ {
310
+ "## master" ,
311
+ "?? Assets/Assets.Test.dll" ,
312
+ "?? Assets/Assets.Test.dll.meta" ,
313
+ "?? Plugins/GitHub.Unity.dll" ,
314
+ "?? Plugins/GitHub.Unity.dll.mdb" ,
315
+ "?? Plugins/GitHub.Unity.dll.mdb.meta" ,
316
+ "?? Plugins/GitHub.Unity2.dll" ,
317
+ "?? Plugins/GitHub.Unity2.dll.mdb" ,
318
+ "?? Plugins/GitHub.Unity2.dll.mdb.meta" ,
319
+ "?? Plugins/GitHub.Unity2.dll.meta" ,
320
+ "?? Plugins/GitHub.Unity.dll.meta" ,
321
+ "?? blah.txt" ,
322
+ null
323
+ } ;
324
+
325
+ AssertProcessOutput ( output , new GitStatus
326
+ {
327
+ LocalBranch = "master" ,
328
+ Entries = new List < GitStatusEntry >
329
+ {
330
+ new GitStatusEntry ( @"Assets/Assets.Test.dll" , TestRootPath + @"\Assets/Assets.Test.dll" , null , GitFileStatus . Untracked ) ,
331
+ new GitStatusEntry ( @"Assets/Assets.Test.dll.meta" , TestRootPath + @"\Assets/Assets.Test.dll.meta" , null , GitFileStatus . Untracked ) ,
332
+ new GitStatusEntry ( @"blah.txt" , TestRootPath + @"\blah.txt" , null , GitFileStatus . Untracked ) ,
333
+ new GitStatusEntry ( @"Plugins/GitHub.Unity.dll" , TestRootPath + @"\Plugins/GitHub.Unity.dll" , null , GitFileStatus . Untracked ) ,
334
+ new GitStatusEntry ( @"Plugins/GitHub.Unity.dll.meta" , TestRootPath + @"\Plugins/GitHub.Unity.dll.meta" , null , GitFileStatus . Untracked ) ,
335
+ new GitStatusEntry ( @"Plugins/GitHub.Unity.dll.mdb" , TestRootPath + @"\Plugins/GitHub.Unity.dll.mdb" , null , GitFileStatus . Untracked ) ,
336
+ new GitStatusEntry ( @"Plugins/GitHub.Unity.dll.mdb.meta" , TestRootPath + @"\Plugins/GitHub.Unity.dll.mdb.meta" , null , GitFileStatus . Untracked ) ,
337
+ new GitStatusEntry ( @"Plugins/GitHub.Unity2.dll" , TestRootPath + @"\Plugins/GitHub.Unity2.dll" , null , GitFileStatus . Untracked ) ,
338
+ new GitStatusEntry ( @"Plugins/GitHub.Unity2.dll.meta" , TestRootPath + @"\Plugins/GitHub.Unity2.dll.meta" , null , GitFileStatus . Untracked ) ,
339
+ new GitStatusEntry ( @"Plugins/GitHub.Unity2.dll.mdb" , TestRootPath + @"\Plugins/GitHub.Unity2.dll.mdb" , null , GitFileStatus . Untracked ) ,
340
+ new GitStatusEntry ( @"Plugins/GitHub.Unity2.dll.mdb.meta" , TestRootPath + @"\Plugins/GitHub.Unity2.dll.mdb.meta" , null , GitFileStatus . Untracked ) ,
341
+ }
342
+ } ) ;
343
+ }
344
+
306
345
private void AssertProcessOutput ( IEnumerable < string > lines , GitStatus expected )
307
346
{
308
347
var gitObjectFactory = SubstituteFactory . CreateGitObjectFactory ( TestRootPath ) ;
0 commit comments