示例#1
0
        private ActionResult InDirectory(Func <string, ActionResult> action)
        {
            var path = ViewModel.Path;

            if (_directorySearch.DirectoryExists(path))
            {
                return(action(path));
            }
            else
            {
                return(ActionResult.Error($"Path not exists: {path}"));
            }
        }
示例#2
0
 public void DirectoryExistsIfCreated()
 {
     Directory.CreateDirectory("bar");
     Assert.IsTrue(_search.DirectoryExists("bar"));
 }