public void GetFileFlatFolderTest()
        {
            var folderStructure = new FolderStructure(null);
            var item            = folderStructure.GetFilesAndFolders(@"c:\wwapps\wwclient", nonRecursive: true);

            Assert.IsNotNull(item);
            Assert.IsTrue(item.Files.Count > 0);

            Console.WriteLine("+" + item.DisplayName);
            WriteChildFiles(item, 1);
        }
        public void GetFileHierarchyTest()
        {
            var folderStructure = new FolderStructure();
            var item            = folderStructure.GetFilesAndFolders(@"c:\temp\clienttools");

            Assert.IsNotNull(item);
            Assert.IsTrue(item.Files.Count > 0);

            Console.WriteLine("+" + item.DisplayName);
            WriteChildFiles(item, 1);
        }
        public void ListChangesRepoTest()
        {
            string path   = @"c:\projects2010\markdownmonster\markdownmonster";
            var    helper = new GitHelper();

            using (var repo = helper.OpenRepository(path))
            {
                Assert.IsNotNull(repo);

                var folder   = new FolderStructure();
                var pathItem = folder.GetFilesAndFolders(path);

                folder.UpdateGitFileStatus(pathItem);
            }
        }
        public void MyTestMethod()
        {
            var folderStructure = new FolderStructure(null);
            var item            = folderStructure.GetFilesAndFolders(@"c:\wwapps\wwclient", nonRecursive: false);

            Assert.IsNotNull(item);
            Assert.IsTrue(item.Files.Count > 0);

            Console.WriteLine("+" + item.DisplayName);
            WriteChildFiles(item, 1);

            var pi = folderStructure.FindPathItemByFilename(item, @"c:\wwapps\wwclient\console\wc.ico");

            Assert.IsNotNull(pi);

            Console.WriteLine(pi);
            Console.WriteLine(pi.Parent);
            Console.WriteLine(pi.Parent.Parent);
        }