public void NumberShouldThrowWhenMinimumIsBiggerThanMaximum()
        {
            // Arrange
            var sut = new OptionSchemaFactory();

            // Act
            var ex = Record.Exception(() => sut.Number("name", "desc", 2, 1));

            // Assert
            Assert.IsType <ArgumentException>(ex);
        }
        public void NumberShouldHaveCorrectRequiredValue(bool value)
        {
            // Arrange
            var sut = new OptionSchemaFactory();

            // Act
            var option = sut.Number("name", "description", null, null, 0, value);

            // Assert
            Assert.Equal(value, option.Required);
        }
        public void NumberShouldHaveCorrectDescription()
        {
            // Arrange
            var          sut      = new OptionSchemaFactory();
            const string expected = "expected";

            // Act
            var option = sut.Number("name", expected);

            // Assert
            Assert.Equal(expected, option.Description);
        }
        public void NumberShouldHaveCorrectDefaultValue()
        {
            // Arrange
            var       sut      = new OptionSchemaFactory();
            const int expected = 123;

            // Act
            var option = sut.Number("name", "description", null, null, expected);

            // Assert
            Assert.Equal(expected, option.DefaultValue);
        }
        public void NumberShouldHaveCorrectName()
        {
            // Arrange
            var          sut      = new OptionSchemaFactory();
            const string expected = "expected";

            // Act
            var option = sut.Number(expected, null);

            // Assert
            Assert.Equal(expected, option.Name);
        }
        public void NumberShouldHaveCorrectMinimum()
        {
            // Arrange
            var       sut      = new OptionSchemaFactory();
            const int expected = 123;

            // Act
            var option = sut.Number("id", "name", "description", expected);

            // Assert
            Assert.Equal(expected, option.MinValue);
        }