Beispiel #1
0
        public void CopesWithNonExistentRoot()
        {
            var found = DotFileFinder.FindAll(
                new DirectoryInfo(RootPath("folder1", "blah")),
                new Regex(@"\.envfile"));

            Assert.That(found, Is.EqualTo(new FileInfo[0]));
        }
Beispiel #2
0
        public void FindsFiles()
        {
            var found = DotFileFinder.FindAll(
                new DirectoryInfo(RootPath("folder1", "folder2")),
                new Regex(@"\.envfile"));

            Assert.That(found.Select(f => f.FullName),
                        Is.EqualTo(new[]
            {
                RootPath("folder1", ".envfile"),
                RootPath("folder1", "folder2", ".envfile")
            }));
        }