Ejemplo n.º 1
0
        public void ShouldGetSetValue()
        {
            var mock = new AbstractFutureMock();

            mock.Set("somevalue");
            Assert.That(mock.Get(), Is.EqualTo("somevalue"));
        }
Ejemplo n.º 2
0
        public void ShouldThrowSetException()
        {
            var mock = new AbstractFutureMock();

            mock.SetException(new ArgumentException());
            Assert.That(() => mock.Get(),
                        Throws.InnerException.TypeOf <ArgumentException>());
        }