Beispiel #1
0
        public PathResolverTests(ITestOutputHelper output) : base(output)
        {
            TestFiles.AddFile("/abc/123.wav", "");
            TestFiles.AddFile("/def/456.wav", "");

            workingDirectory = "/abc";
        }
Beispiel #2
0
        public void MultiGlobHasAnIFileSystemExtension()
        {
            var glob = MultiGlob.Parse("**|!donkey");

            TestFiles.AddFile("hello.txt", null);
            TestFiles.AddFile("donkey", null);
            TestFiles.AddFile("abc/hello", null);
            TestFiles.AddFile("abc/donkey", null);
            var results = glob.GetResultsInFullPath(TestFiles, Helpers.DefaultTestPath);

            results.Should().BeEquivalentTo(new string[] {
                TestFiles.Path.GetFullPath("hello.txt"),
                TestFiles.Path.GetFullPath("abc/hello"),
                TestFiles.Path.GetFullPath("abc/donkey"),
            });
        }