public void GetCurrentDirectoryTest() { var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); socket.Connect(Host, Port); var operationPerformer = new OperationPerformer(socket); operationPerformer.OmitWelcomeResponse(); operationPerformer.LogIn(Username, Password); Assert.IsTrue(operationPerformer.GetCurrentDirectory() == "/"); operationPerformer.ChangeDirectory(".settings"); Assert.IsTrue(operationPerformer.GetCurrentDirectory() == "/.settings"); operationPerformer.ChangeDirectory("../.././../.settings/../."); Assert.IsTrue(operationPerformer.GetCurrentDirectory() == "/"); operationPerformer.LogOut(); Assert.IsTrue(true); }