public void IsSatisfiedByWithNullRequestShouldThrowArgumentNullException()
 {
     // Fixture setup
     var sut = new ImplementedInterfaceSpecification(typeof(object));
     // Exercise system and verify outcome
     Assert.Throws<ArgumentNullException>(() =>
         sut.IsSatisfiedBy(null));
     // Teardown
 }
 public void SutIsRequestSpecification()
 {
     // Fixture setup
     // Exercise system
     var sut = new ImplementedInterfaceSpecification(typeof(object));
     // Verify outcome
     Assert.IsAssignableFrom<IRequestSpecification>(sut);
     // Teardown
 }
 public void InitializeWithTargetTypeShouldSetCorrespondingProperty()
 {
     // Fixture setup
     var targetType = typeof(object);
     // Exercise system
     var sut = new ImplementedInterfaceSpecification(targetType);
     // Verify outcome
     Assert.Equal(targetType, sut.TargetType);
     // Teardown
 }
 public void IsSatisfiedByWithRequestForImplementedInterfaceShouldReturnTrue()
 {
     // Fixture setup
     var targetType = typeof(NoopInterfaceImplementer);
     var requestedType = typeof(IInterface);
     var sut = new ImplementedInterfaceSpecification(targetType);
     // Exercise system
     var result = sut.IsSatisfiedBy(requestedType);
     // Verify outcome
     Assert.True(result);
     // Teardown
 }
 public void IsSatisfiedByWithInvalidRequestShouldReturnFalse(object request)
 {
     // Fixture setup
     var targetType = typeof(NoopInterfaceImplementer);
     var sut = new ImplementedInterfaceSpecification(targetType);
     // Exercise system
     var result = sut.IsSatisfiedBy(request);
     // Verify outcome
     Assert.False(result);
     // Teardown
 }