コード例 #1
0
        public void SetUpperDirectoryTest()
        {
            string path    = Environment.CurrentDirectory;
            string?newPath = Path.GetDirectoryName(path) ?? Environment.CurrentDirectory;

            Assert.IsNull(cd.Execute(new string[] { ".." }));
            Assert.That(Environment.CurrentDirectory, Is.EqualTo(newPath));
        }
コード例 #2
0
 public static void SetDirectory()
 {
     cd.Execute(new string[0]);
     cd.Execute(new string[] { @"..\..\..\..\Bash.UnitTests\TestFiles" });
 }