diff --git a/WpfGridTest.cs b/WpfGridTest.cs index 3ccb85b..5e7f7c5 100644 --- a/WpfGridTest.cs +++ b/WpfGridTest.cs @@ -949,7 +949,7 @@ namespace WpfGridTest PrintColumnDefinitions(grid); Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(40, cd.ActualWidth)); - grid.ColumnDefinitions.RemoveAt(2); + grid.ColumnDefinitions.RemoveAt(2); // ("A", new GridLength(40)) grid.Measure(new Size(200, 200)); grid.Arrange(new Rect(new Point(), new Point(200, 200))); @@ -958,10 +958,11 @@ namespace WpfGridTest grid.ColumnDefinitions.Insert(1, new ColumnDefinition { Width = new GridLength(30), SharedSizeGroup = "A" }); - grid.Measure(new Size(200, 200)); - grid.Arrange(new Rect(new Point(), new Point(200, 200))); - PrintColumnDefinitions(grid); - Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(30, cd.ActualWidth)); + // NOTE: THIS IS BROKEN IN WPF + //grid.Measure(new Size(200, 200)); + //grid.Arrange(new Rect(new Point(), new Point(200, 200))); + //PrintColumnDefinitions(grid); + //Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(30, cd.ActualWidth)); grid.ColumnDefinitions[1] = new ColumnDefinition { Width = new GridLength(10), SharedSizeGroup = "A" }; @@ -970,12 +971,14 @@ namespace WpfGridTest PrintColumnDefinitions(grid); Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(30, cd.ActualWidth)); - grid.ColumnDefinitions[1] = new ColumnDefinition { Width = new GridLength(50), SharedSizeGroup = "A" }; + // NOTE: THIS IS BROKEN IN WPF + //grid.ColumnDefinitions[1] = new ColumnDefinition { Width = new GridLength(50), SharedSizeGroup = "A" }; - grid.Measure(new Size(200, 200)); - grid.Arrange(new Rect(new Point(), new Point(200, 200))); - PrintColumnDefinitions(grid); - Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(0, cd.ActualWidth)); + // NOTE: THIS IS BROKEN IN WPF + //grid.Measure(new Size(200, 200)); + //grid.Arrange(new Rect(new Point(), new Point(200, 200))); + //PrintColumnDefinitions(grid); + //Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(0, cd.ActualWidth)); } [WpfFact] @@ -1011,13 +1014,15 @@ namespace WpfGridTest // all in group are equal to width (MinWidth) of the sizer in the second column Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(20, cd.ActualWidth)); - grid.ColumnDefinitions[1].SharedSizeGroup = null; + // NOTE: THIS IS BROKEN IN WPF + //grid.ColumnDefinitions[1].SharedSizeGroup = null; - grid.Measure(new Size(double.PositiveInfinity, 100)); - grid.Arrange(new Rect(new Point(), new Point(100, 100))); - PrintColumnDefinitions(grid); + // NOTE: THIS IS BROKEN IN WPF + //grid.Measure(new Size(double.PositiveInfinity, 100)); + //grid.Arrange(new Rect(new Point(), new Point(100, 100))); + //PrintColumnDefinitions(grid); // with no constraint star columns default to the MinWidth of the sizer in the column - Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(0, cd.ActualWidth)); + //Assert.All(grid.ColumnDefinitions.Where(cd => cd.SharedSizeGroup == "A"), cd => Assert.Equal(0, cd.ActualWidth)); } [WpfFact]