tests/TestTreeFiltering.cs
/// <summary>
/// Keeps /Test1 directory and a.txt file
/// </summary>
Keeps /Test1 directory and a.txt file
Keeps / Test1 directory and a . txt file
[Fact]
        public void KeepOnlyOneDirectoryAndFile()
        {
            var test = InitializeTest();
            Program.Main("--keep", "/Test1",
                "--keep", "a.txt",
                "--repo-dir", test.Path,
                "--branch", NewBranch,
                @"HEAD");
            CheckKeepOnlyOneDirectoryAndFile(test);
            test.Dispose();
        }
[ Fact ] public void KeepOnlyOneDirectoryAndFile ( ) { var test = InitializeTest ( ) ; Program . Main ( " " , " " , " " , " " , " " , test . Path , " " , NewBranch , @"HEAD" ) ; CheckKeepOnlyOneDirectoryAndFile ( test ) ; test . Dispose ( ) ; }
Keeps /Test1 directory and a.txt file
Keeps / Test1 directory and a . txt file
// Cleanup the test only if we succeed