Beispiel #1
0
        public void ShouldBeInvalidFormatFieldNameException()
        {
            var builder = new SettingsBuilder();

            builder
            .PageNumberFieldName("A+");

            builder.Invoking(b => b.Build())
            .Should()
            .Throw <InvalidFormatFieldNameException>();
        }
Beispiel #2
0
        public void ShouldBeOutOfRangePageSizeException()
        {
            var builder = new SettingsBuilder();

            builder
            .PageSize(-2);

            builder.Invoking(b => b.Build())
            .Should()
            .Throw <OutOfRangePageSizeException>();
        }
Beispiel #3
0
        public void ShouldBeAlreadyFieldNameUsedException()
        {
            var builder = new SettingsBuilder();

            builder
            .PageNumberFieldName("A")
            .PageSizeFieldName("A");

            builder.Invoking(b => b.Build())
            .Should()
            .Throw <AlreadyFieldNameUsedException>();
        }