Ejemplo n.º 1
0
        public void can_find_files()
        {
            var files = theFolder.FindFiles(new FileSet {
                DeepSearch = true,
                Include    = "*.txt"
            }).Select(x => x.Path.PathRelativeTo(FubuMvcPackageFacility.GetApplicationPath()));

            files.ShouldContain(@"Runtime{0}Files{0}Data{0}a.txt".ToFormat(Path.DirectorySeparatorChar));
            files.ShouldContain(@"Runtime{0}Files{0}Data{0}b.txt".ToFormat(Path.DirectorySeparatorChar));
            files.ShouldContain(@"Runtime{0}Files{0}Data{0}c.txt".ToFormat(Path.DirectorySeparatorChar));
            files.ShouldContain(@"Runtime{0}Files{0}Data{0}d.txt".ToFormat(Path.DirectorySeparatorChar));
        }
Ejemplo n.º 2
0
        public void can_find_files()
        {
            var files = theFolder.FindFiles(new FileSet {
                DeepSearch = true,
                Include    = "*.txt"
            }).Select(x => x.Path.PathRelativeTo(FubuMvcPackageFacility.GetApplicationPath()));

            files.ShouldContain(@"Runtime\Files\Data\a.txt");
            files.ShouldContain(@"Runtime\Files\Data\b.txt");
            files.ShouldContain(@"Runtime\Files\Data\c.txt");
            files.ShouldContain(@"Runtime\Files\Data\d.txt");
        }