Beispiel #1
0
 public override void OneTimeSetup()
 {
     _inverseRequestSpecificationInstanceType    = typeof(InverseRequestSpecification);
     _inverseRequestSpecificationInstanceFixture = this.Create <InverseRequestSpecification>(true);
     _inverseRequestSpecificationInstance        = _inverseRequestSpecificationInstanceFixture ?? this.Create <InverseRequestSpecification>(false);
     CurrentInstance = _inverseRequestSpecificationInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
Beispiel #2
0
        public void AUT_InverseRequestSpecification_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var specification = this.CreateType <IRequestSpecification>();
            InverseRequestSpecification instance = null;
            Exception creationException          = null;

            // Act
            Action createAction = () => instance = new InverseRequestSpecification(specification);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _inverseRequestSpecificationInstance.ShouldNotBeNull();
            _inverseRequestSpecificationInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }