예제 #1
0
        public void TestFindRHomePath()
        {
            string rHomePath = NativeUtility.FindRHome();
            var    files     = Directory.GetDirectories(rHomePath);
            var    fnmatch   = files.Where(fn => Path.GetFileName(fn) == "library");

            Assert.AreEqual(1, fnmatch.Count());
            fnmatch = Directory.GetDirectories(fnmatch.First()).Where(fn => Path.GetFileName(fn) == "base");
            Assert.AreEqual(1, fnmatch.Count());
        }