public void Can_TryReserve_with_timeout() { _mockSocket.Expect("reserve-with-timeout 10\r\n", "RESERVED 123 3\r\nbar\r\n"); Job job; Assert.AreEqual(ReservationStatus.Reserved, _client.TryReserve(TimeSpan.FromSeconds(10), out job)); _mockSocket.Verify(); Assert.AreEqual(123, job.Id); Assert.AreEqual("bar", job.Data.AsText()); }