public void Should_get_latest_delta_when_there_is_an_existing_delta_in_the_database() { const string connectionString = "xcc://*****:*****@localhost:9001"; SetupLatestDeltaAs(10L, "blah"); Delta latestDelta = new DeployRepository(connectionString, null).GetLatestDeltaInDatabase(); Assert.That(typeof(Delta) == latestDelta.GetType()); Assert.AreEqual(10L, latestDelta.Number); Assert.AreEqual("blah", latestDelta.Description); DeleteTheLatestDeltaInTheDatabase(); }