Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 77e99e8

Browse files
Fixing test
1 parent 3b36e34 commit 77e99e8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/tests/UnitTests/UI/TreeBuilderTests.cs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)