protected override Size MeasureOverride(Size availableSize) { if (pivot != null) { pivot.Measure(availableSize); return(pivot.DesiredSize); } else { return(new Size(0, 0)); } }
public void When_Empty() { var SUT = new Pivot() { Name = "test" }; var grid = new Grid(); grid.Children.Add(SUT); grid.ForceLoaded(); SUT.Measure(default(Size)); SUT.Arrange(default(Rect)); Assert.AreEqual(default(Size), SUT.DesiredSize); }