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