public void SutIsRequestSpecification()
 {
     // Fixture setup
     // Exercise system
     var sut = new TrueRequestSpecification();
     // Verify outcome
     Assert.IsAssignableFrom<IRequestSpecification>(sut);
     // Teardown
 }
 public void InitializeWithMatcherShouldSetCorrespondingProperty()
 {
     // Fixture setup
     var matcher = new TrueRequestSpecification();
     // Exercise system
     var sut = new FreezeOnMatchCustomization(typeof(object), matcher);
     // Verify outcome
     Assert.Equal(matcher, sut.Matcher);
 }
 public void IsSatisfiedByReturnsCorrectResult()
 {
     // Fixture setup
     var sut = new TrueRequestSpecification();
     // Exercise system
     var dummyRequest = new object();
     var result = sut.IsSatisfiedBy(dummyRequest);
     // Verify outcome
     Assert.True(result);
     // Teardown
 }
        public void SpecificationIsCorrect()
        {
            // Fixture setup
            IRequestSpecification specification = new TrueRequestSpecification();
            var sut = new NSubstituteBuilder(Substitute.For<ISpecimenBuilder>(), specification);

            // Exercise system
            var result = sut.SubstitutionSpecification;

            // Verify outcome
            Assert.Equal(specification, result);

            // Teardown
        }
        public void Create_WithRequestThatIsNotAType_ReturnsNoSpecimen(object request)
        {
            // Fixture setup
            var specification = new TrueRequestSpecification();
            var sut = new NSubstituteBuilder(Substitute.For<ISpecimenBuilder>(), specification);
            var context = Substitute.For<ISpecimenContext>();

            // Exercise system
            var result = sut.Create(request, context);

            // Verify outcome
            var expected = new NoSpecimen(request);
            Assert.Equal(expected, result);
        }