14 references to Contains
Aspire.Tray.Tests (14)
TrayPanelTests.cs (10)
78
Assert.True(bounds.
Contains
(target.HitBounds) || target.HitBounds.IsEmpty, $"{target.Key} at {target.HitBounds}");
79
Assert.True(target.HitBounds.IsEmpty || target.Bounds.
Contains
(target.HitBounds));
86
target => Assert.True(target.HitBounds.IsEmpty || panel.Viewport.
Contains
(target.HitBounds)));
102
Assert.All(footer, target => Assert.True(bounds.
Contains
(target.HitBounds)));
125
Assert.True(row.Bounds.
Contains
(button.Bounds), $"{button.Key} outside its row");
412
target => Assert.True(panel.Viewport.
Contains
(target.Bounds), $"{target.Key} at {target.Bounds}"));
617
Assert.True(panel.Viewport.
Contains
(focused.Bounds));
869
Assert.All(commands, command => Assert.True(box.Inset(-0.5, -0.5).
Contains
(GetBounds(command)), $"{command}"));
1208
Assert.All(commands, command => Assert.True(box.
Contains
(GetBounds(command)), $"{glyph}: {GetBounds(command)}"));
1237
Assert.All(commands, command => Assert.True(box.
Contains
(GetBounds(command)), $"{icon}: {GetBounds(command)}"));
WindowsTrayPanelPlacementTests.cs (4)
16
Assert.True(workarea.
Contains
(panel));
28
Assert.True(workarea.
Contains
(panel));
40
Assert.True(workarea.
Contains
(panel));
55
Assert.True(workarea.
Contains
(panel));