示例#1
0
        public void AllChildrenOfAGivenNodeCanBeRetrievedRecusively()
        {
            WaitLoad();

            _frame.RunDispatcher();

            var sb = new StringBuilder();

            var folderD = _view.Items.FirstOrDefault(i => i.Name == "FolderD");

            if (folderD != null)
            {
                var folderId = folderD.Id;
                foreach (var node in _view.GetAllChildren(folderId))
                {
                    sb.AppendLine(string.Format("{0} {1}", FormatPath(node), node.Name));
                }
            }

            var result = sb.ToString();

            Console.WriteLine(result);
            Approvals.Verify(result);
        }