public void Remote_LocationSegments() { SvnSandBox sbox = new SvnSandBox(this); SvnRemoteSession rs; using (SvnRemoteSession rc = new SvnRemoteSession()) { Uri root = sbox.CreateRepository(SandBoxRepository.MergeScenario); rc.Open(root); int n = 0; rc.LocationSegments("branches/b/about/index.html", delegate(object sender, SvnRemoteLocationSegmentEventArgs e) { switch (n++) { case 0: Assert.That(e.RepositoryPath, Is.EqualTo("branches/b/about/index.html")); Assert.That(e.Uri, Is.EqualTo(new Uri(root, e.RepositoryPath))); break; case 1: Assert.That(e.RepositoryPath, Is.EqualTo("trunk/about/index.html")); break; default: Assert.That(false); break; } }); Assert.That(n, Is.EqualTo(2)); rs = rc; long r; Assert.That(rc.GetDeletedRevision("trunk", 2, out r)); Assert.That(r, Is.EqualTo(-1)); } Assert.That(!rs.IsCommandRunning); Assert.That(rs.IsDisposed); }