예제 #1
0
 public override void OneTimeSetup()
 {
     _fieldSpecificationInstanceType    = typeof(FieldSpecification);
     _fieldSpecificationInstanceFixture = this.Create <FieldSpecification>(true);
     _fieldSpecificationInstance        = _fieldSpecificationInstanceFixture ?? this.Create <FieldSpecification>(false);
     CurrentInstance = _fieldSpecificationInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
예제 #2
0
        public void AUT_FieldSpecification_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var targetType = this.CreateType <Type>();
            var targetName = this.CreateType <string>();
            FieldSpecification instance          = null;
            Exception          creationException = null;

            // Act
            Action createAction = () => instance = new FieldSpecification(targetType, targetName);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _fieldSpecificationInstance.ShouldNotBeNull();
            _fieldSpecificationInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }