public void ShouldGetSetValue() { var mock = new AbstractFutureMock(); mock.Set("somevalue"); Assert.That(mock.Get(), Is.EqualTo("somevalue")); }
public void ShouldThrowSetException() { var mock = new AbstractFutureMock(); mock.SetException(new ArgumentException()); Assert.That(() => mock.Get(), Throws.InnerException.TypeOf <ArgumentException>()); }