Пример #1
0
        string[] IFileSystem.GetFiles(string path, string pattern, SearchOption option)
        {
            switch (pattern)
            {
            case "microsoft-r-open-mro-3.3*.list":
                return(new string[] { "TestData/microsoft-r-open-mro-3.3.list" });    // this is the test status file

            case "/var/lib/dpkg/info/r-base-core.list":
                return(new string[] { "TestData/r-base-core.list" });    // this is the test status file
            }
            return(_doPlatformDefault ? _fs.GetFiles(path, pattern, option) : new string[] { });
        }
Пример #2
0
        public override string[] GetFiles(string path, string pattern, SearchOption option)
        {
            switch (pattern)
            {
            case "microsoft-r-open-mro-3.3*.list":
                return(new string[] { "TestData/microsoft-r-open-mro-3.3.list" });    // this is the test status file

            case "/var/lib/dpkg/info/r-base-core.list":
                return(new string[] { "TestData/r-base-core.list" });    // this is the test status file

            default:
                if (_doPlatformDefault)
                {
                    return(_fs.GetFiles(path, pattern, option));
                }
                else
                {
                    return(new string[] { });
                }
            }
        }