Exemplo n.º 1
0
        /// <summary>
        /// Set working directory
        /// </summary>
        /// <param name="workDir"></param>
        /// <returns></returns>
        public CommandLine SetWorkingDirectory(string workDir)
        {
            Expect.DirectoryExist(workDir);

            _workDir = workDir;
            return(this);
        }
Exemplo n.º 2
0
 public void DirectoryExist_ParamExist_ShouldPass()
 {
     Expect.DirectoryExist(Path.GetDirectoryName(GetType().Assembly.Location));
 }
Exemplo n.º 3
0
 public void DirectoryExist_ParamNotExist_ShouldThrow()
 {
     Assert.Throws <ExpectionException>(() => Expect.DirectoryExist("dir_not_exist"));
 }