public override void OneTimeSetup()
 {
     _objectCreationExceptionInstanceType    = typeof(ObjectCreationException);
     _objectCreationExceptionInstanceFixture = this.Create <ObjectCreationException>(true);
     _objectCreationExceptionInstance        = _objectCreationExceptionInstanceFixture ?? this.Create <ObjectCreationException>(false);
     CurrentInstance = _objectCreationExceptionInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
        public void AUT_ObjectCreationException_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            ObjectCreationException instance = null;

            // Act
            var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance);

            // Assert
            instance.ShouldNotBeNull();
            exception.ShouldBeNull();
        }
        public void AUT_ObjectCreationException_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var message = this.CreateType <string>();
            ObjectCreationException instance = null;
            Exception creationException      = null;

            // Act
            Action createAction = () => instance = new ObjectCreationException(message);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _objectCreationExceptionInstance.ShouldNotBeNull();
            _objectCreationExceptionInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }