public void UpdateInUse() { SvnSandBox sbox = new SvnSandBox(this); Uri CollabReposUri = sbox.CreateRepository(SandBoxRepository.MergeScenario); string dir = sbox.Wc; Client.CheckOut(new SvnUriTarget(new Uri(CollabReposUri, "trunk"), 1), dir); using (File.OpenRead(Path.Combine(dir, "index.html"))) using (new Implementation.SvnFsOperationRetryOverride(0)) { SvnSystemException se = null; try { Client.Update(Path.Combine(dir, "index.html")); Assert.Fail("Should have failed"); } catch (SvnWorkingCopyException e) { Assert.That(e.Message, Is.StringContaining("Failed to run the WC DB")); se = e.GetCause <SvnSystemException>(); } catch (SvnSystemException e) { se = e; } Assert.That(se, Is.Not.Null, "Have system exception"); Assert.That(se.Message, Is.StringContaining("Can't move")); } }