public void CanSourceCopyFromSelf() { _ssh = new UtilsForBuildingLinuxDatasets("LinuxRemoteTestTunnel"); var p1 = new PlaceLinuxRemote("test1", _ssh.RemotePath, _ssh.RemoteHostInfo); var p2 = new PlaceLinuxRemote("test1", _ssh.RemotePath, _ssh.RemoteHostInfo); Assert.IsTrue(p1.CanSourceCopy(p2)); }
public void CanNotSourceCopyToNonISCPTarget() { var p = new PlaceLinuxRemote("test", _ssh.RemotePath, _ssh.RemoteHostInfo); var other = new DummyPlace("testmeout"); DataSetManager.ResetDSM(p, other); Assert.IsFalse(p.CanSourceCopy(other)); }
public void CanNotSourceCopyFromSomeoneSomewhereElse() { var _ssh1 = new UtilsForBuildingLinuxDatasets("LinuxRemoteTestTunnel"); var p1 = new PlaceLinuxRemote("test1", _ssh1.RemotePath, _ssh1.RemoteHostInfo); var _ssh2 = new UtilsForBuildingLinuxDatasets(); var p2 = new PlaceLinuxRemote("test1", _ssh2.RemotePath, _ssh2.RemoteHostInfo); DataSetManager.ResetDSM(p1, p2); Assert.IsFalse(p2.CanSourceCopy(p1)); }
public void CanNotSourceCopyToISCPTarget() { var p = new PlaceLinuxRemote("test", _ssh.RemotePath, _ssh.RemoteHostInfo); var other = new ScpTargetDummy() { DoVisibility = false }; DataSetManager.ResetDSM(p, other); Assert.IsFalse(p.CanSourceCopy(other)); }