Repository: AvaloniaUI/Avalonia
File: tests/Avalonia.Controls.UnitTests/GridTests.cs (C#)

Code before:
        }

        [Theory]
        [InlineData(true)]
        [InlineData(false)]
        public void Changing_Column_MaxWidth_Should_Invalidate_Grid(bool setUsingAvaloniaProperty)
        {
            var grid = new Grid { ColumnDefinitions = ColumnDefinitions.Parse("1*,1*") };

            Change_Propery_And_Verify_Measure_Requested(grid, () =>
            {
                if (setUsingAvaloniaProperty)
                    grid.ColumnDefinitions[0][ColumnDefinition.MaxWidthProperty] = 5;
                else
                    grid.ColumnDefinitions[0].MaxWidth = 5;
            });
        }

        [Theory]
        [InlineData(true)]
        [InlineData(false)]
        public void Changing_Row_Height_Should_Invalidate_Grid(bool setUsingAvaloniaProperty)
        {
            var grid = new Grid { RowDefinitions = RowDefinitions.Parse("1*,1*") };

            Change_Propery_And_Verify_Measure_Requested(grid, () =>
            {
                if (setUsingAvaloniaProperty)
                    grid.RowDefinitions[0][RowDefinition.HeightProperty] = new GridLength(5);
                else
                    grid.RowDefinitions[0].Height = new GridLength(5);
            });
        }

        [Theory]
        [InlineData(true)]
        [InlineData(false)]
        public void Changing_Row_MinHeight_Should_Invalidate_Grid(bool setUsingAvaloniaProperty)
        {
            var grid = new Grid { RowDefinitions = RowDefinitions.Parse("1*,1*") };

            Change_Propery_And_Verify_Measure_Requested(grid, () =>
            {
                if (setUsingAvaloniaProperty)
                    grid.RowDefinitions[0][RowDefinition.MinHeightProperty] = 5;
                else
                    grid.RowDefinitions[0].MinHeight = 5;
            });
        }

        [Theory]

Review comment (suggestion):
```suggestion
            Change_Property_And_Verify_Measure_Requested(grid, () =>
```

Code after:
        }

        [Theory]
        [InlineData(true)]
        [InlineData(false)]
        public void Changing_Column_MaxWidth_Should_Invalidate_Grid(bool setUsingAvaloniaProperty)
        {
            var grid = new Grid { ColumnDefinitions = ColumnDefinitions.Parse("1*,1*") };

            Change_Property_And_Verify_Measure_Requested(grid, () =>
            {
                if (setUsingAvaloniaProperty)
                    grid.ColumnDefinitions[0][ColumnDefinition.MaxWidthProperty] = 5;
                else
                    grid.ColumnDefinitions[0].MaxWidth = 5;
            });
        }

        [Theory]
        [InlineData(true)]
        [InlineData(false)]
        public void Changing_Row_Height_Should_Invalidate_Grid(bool setUsingAvaloniaProperty)
        {
            var grid = new Grid { RowDefinitions = RowDefinitions.Parse("1*,1*") };

            Change_Property_And_Verify_Measure_Requested(grid, () =>
            {
                if (setUsingAvaloniaProperty)
                    grid.RowDefinitions[0][RowDefinition.HeightProperty] = new GridLength(5);
                else
                    grid.RowDefinitions[0].Height = new GridLength(5);
            });
        }

        [Theory]
        [InlineData(true)]
        [InlineData(false)]
        public void Changing_Row_MinHeight_Should_Invalidate_Grid(bool setUsingAvaloniaProperty)
        {
            var grid = new Grid { RowDefinitions = RowDefinitions.Parse("1*,1*") };

            Change_Property_And_Verify_Measure_Requested(grid, () =>
            {
                if (setUsingAvaloniaProperty)
                    grid.RowDefinitions[0][RowDefinition.MinHeightProperty] = 5;
                else
                    grid.RowDefinitions[0].MinHeight = 5;
            });
        }

        [Theory]