Exemple #1
0
        public void WhenGridSizeIsNotSetAndComponentCountIsSetShouldThrowException()
        {
            Grid.GridBuilder builder = Grid.Builder();
            Action           action  = () => builder.WithComponentCount(4);

            action.Should().Throw <ArgumentException>().WithMessage("Grid size is not set properly.Please set grid size first.");
        }
Exemple #2
0
        public void WhenComponentCountSentZeroShouldThrowException()
        {
            Grid.GridBuilder builder = Grid.Builder();
            Action           action  = () => builder.WithComponentCount(0);

            action.Should().Throw <ArgumentException>().WithMessage("Please enter a valid positive integer value.");
        }