public override void OneTimeSetup()
 {
     _illegalRequestExceptionInstanceType    = typeof(IllegalRequestException);
     _illegalRequestExceptionInstanceFixture = this.Create <IllegalRequestException>(true);
     _illegalRequestExceptionInstance        = _illegalRequestExceptionInstanceFixture ?? this.Create <IllegalRequestException>(false);
     CurrentInstance = _illegalRequestExceptionInstanceFixture;
     ConfigureIgnoringTests(); // Configure ignoring tests.
 }
        public void AUT_IllegalRequestException_Instantiated_Without_Parameter_No_Throw_Exception_Test()
        {
            // Arrange
            IllegalRequestException instance = null;

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

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

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

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _illegalRequestExceptionInstance.ShouldNotBeNull();
            _illegalRequestExceptionInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }