public void IsSatisfiedByReturnsCorrectResult(bool decoratedResult)
 {
     // Fixture setup
     var spec = new DelegatingRequestSpecification { OnIsSatisfiedBy = r => decoratedResult };
     var sut = new InverseRequestSpecification(spec);
     // Exercise system
     var dummyRequest = new object();
     var result = sut.IsSatisfiedBy(dummyRequest);
     // Verify outcome
     Assert.Equal(!decoratedResult, result);
     // Teardown
 }
 public void IsSatisfidByInvokesDecoratedSpecWithCorrectRequest()
 {
     // Fixture setup
     var expectedRequest = new object();
     var verified = false;
     var mock = new DelegatingRequestSpecification { OnIsSatisfiedBy = r => verified = expectedRequest == r };
     var sut = new InverseRequestSpecification(mock);
     // Exercise system
     sut.IsSatisfiedBy(expectedRequest);
     // Verify outcome
     Assert.True(verified, "Mock verified");
     // Teardown
 }