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)); }
public static void SetDirectory() { cd.Execute(new string[0]); cd.Execute(new string[] { @"..\..\..\..\Bash.UnitTests\TestFiles" }); }