public void CallTree_ExpandAll_NoNodes() { var mockToolWindow = new Mock <IToolWindow>(); mockToolWindow.Setup(s => s.UpdateSelectionList(It.IsAny <object[]>())); CallTree tree = new CallTree(new List <CallTreeNode>(), mockToolWindow.Object); tree.ExpandAll(); }
public void CallTree_ExpandAll() { CallTree tree = CreateCallTree(); tree.ExpandAll(); tree.TopLevelNodes[0].IsExpanded.Should().BeTrue(); tree.TopLevelNodes[0].Children[0].IsExpanded.Should().BeTrue(); tree.TopLevelNodes[0].Children[1].IsExpanded.Should().BeTrue(); tree.TopLevelNodes[0].Children[2].IsExpanded.Should().BeTrue(); tree.TopLevelNodes[1].IsExpanded.Should().BeTrue(); tree.TopLevelNodes[2].IsExpanded.Should().BeTrue(); }