示例#1
0
        public void AUT_ConstrainedStringRequest_Constructor_Instantiation_With_Parameter_Test()
        {
            // Arrange
            var minimumLength = this.CreateType <int>();
            var maximumLength = this.CreateType <int>();
            ConstrainedStringRequest instance = null;
            Exception creationException       = null;

            // Act
            Action createAction = () => instance = new ConstrainedStringRequest(minimumLength, maximumLength);

            creationException = ActionAnalyzer.GetActionException(createAction);

            // Assert
            instance.ShouldNotBeNull();
            _constrainedStringRequestInstance.ShouldNotBeNull();
            _constrainedStringRequestInstanceFixture.ShouldNotBeNull();
            Should.NotThrow(createAction);
        }