コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }