8 references to GetControlBounds
Aspire.Tray.Tests (8)
TrayPanelTests.cs (8)
946var dot = scene.Commands.OfType<FillPathCommand>().Single(fill => fill.Path.GetControlBounds() is { Width: 8, Height: 8 } bounds 956Assert.Equal(status.Baseline - PanelFonts.CapHeight(PanelFontRole.Body) / 2, dot.Path.GetControlBounds().CenterY, 3); 970.Select(fill => fill.Path.GetControlBounds()).ToList(); 979.Select(fill => fill.Path.GetControlBounds()).ToList(); 1058Assert.Equal(rect, path.GetControlBounds()); 1132var fill = panel.Scene.Commands.OfType<FillPathCommand>().Last(fill => fill.Path.GetControlBounds().Contains(accept.Bounds.CenterX, accept.Bounds.CenterY) 1133&& fill.Path.GetControlBounds().Width <= accept.Bounds.Width + 1); 1490return path.GetControlBounds().Inset(-width / 2, -width / 2);