@@ -535,6 +535,11 @@ public void CanUpdateTreeAndMaintainSelectedState()
535535 treeRoot = TreeBuilder . BuildTreeRoot ( newGitStatusEntries2 , gitStatusEntries , gitCommitTargets ,
536536 foldedTreeEntries , stateChangeCallbackListener . StateChangeCallback ) ;
537537
538+ treeRootChidren = treeRoot . Children . ToArray ( ) ;
539+ treeRootChidren . Length . Should ( ) . Be ( 2 ) ;
540+
541+ var file3 = treeRootChidren [ 1 ] ;
542+
538543 gitStatusEntries . Count . Should ( ) . Be ( 2 ) ;
539544 gitCommitTargets . Count . Should ( ) . Be ( 2 ) ;
540545 foldedTreeEntries . Count . Should ( ) . Be ( 0 ) ;
@@ -550,13 +555,13 @@ public void CanUpdateTreeAndMaintainSelectedState()
550555 file1 . Target . Should ( ) . Be ( gitCommitTargets [ 0 ] ) ;
551556 file1 . Children . Should ( ) . BeEmpty ( ) ;
552557
553- file2 . Label . Should ( ) . Be ( "file3.txt" ) ;
554- file2 . Open . Should ( ) . BeTrue ( ) ;
555- file2 . Path . Should ( ) . Be ( "file3.txt" ) ;
556- file2 . RepositoryPath . Should ( ) . Be ( "file3.txt" ) ;
557- file2 . State . Should ( ) . Be ( CommitState . None ) ;
558- file2 . Target . Should ( ) . Be ( gitCommitTargets [ 1 ] ) ;
559- file2 . Children . Should ( ) . BeEmpty ( ) ;
558+ file3 . Label . Should ( ) . Be ( "file3.txt" ) ;
559+ file3 . Open . Should ( ) . BeTrue ( ) ;
560+ file3 . Path . Should ( ) . Be ( "file3.txt" ) ;
561+ file3 . RepositoryPath . Should ( ) . Be ( "file3.txt" ) ;
562+ file3 . State . Should ( ) . Be ( CommitState . None ) ;
563+ file3 . Target . Should ( ) . Be ( gitCommitTargets [ 1 ] ) ;
564+ file3 . Children . Should ( ) . BeEmpty ( ) ;
560565 }
561566
562567 [ Test ]
0 commit comments