Exemplo n.º 1
0
 public void MoveUpToDirectory_Should_Set_New_Directory_By_Name()
 {
     const string name = "Honcho.Tests";
     var currentDirectory = new CurrentDirectory();
     currentDirectory.MoveUpToDirectory(name);
     currentDirectory.Name.ShouldEqual(name);
 }
Exemplo n.º 2
0
 public void MoveDownToDirectory_Should_Set_New_Directory_By_Like_Name()
 {
     var currentDirectory = new CurrentDirectory();
     var name = currentDirectory.Name;
     currentDirectory.MoveUpToDirectory();
     currentDirectory.MoveDownToDirectory(name.Substring(0, name.Length/2));
     currentDirectory.Name.ShouldEqual(name);
 }