8 references to GetControlBounds
Aspire.Tray.Tests (8)
TrayPanelTests.cs (8)
1050
var dot = scene.Commands.OfType<FillPathCommand>().Single(fill => fill.Path.
GetControlBounds
() is { Width: 8, Height: 8 } bounds
1060
Assert.Equal(status.Baseline - PanelFonts.CapHeight(PanelFontRole.Body) / 2, dot.Path.
GetControlBounds
().CenterY, 3);
1074
.Select(fill => fill.Path.
GetControlBounds
()).ToList();
1083
.Select(fill => fill.Path.
GetControlBounds
()).ToList();
1189
Assert.Equal(rect, path.
GetControlBounds
());
1263
var fill = panel.Scene.Commands.OfType<FillPathCommand>().Last(fill => fill.Path.
GetControlBounds
().Contains(accept.Bounds.CenterX, accept.Bounds.CenterY)
1264
&& fill.Path.
GetControlBounds
().Width <= accept.Bounds.Width + 1);
1619
return path.
GetControlBounds
().Inset(-width / 2, -width / 2);