9 references to Contains
Aspire.Tray.Tests (9)
TrayPanelTests.cs (9)
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)));
103Assert.True(row.Bounds.Contains(button.Bounds), $"{button.Key} outside its row");
372target => Assert.True(panel.Viewport.Contains(target.Bounds), $"{target.Key} at {target.Bounds}"));
513Assert.True(panel.Viewport.Contains(focused.Bounds));
765Assert.All(commands, command => Assert.True(box.Inset(-0.5, -0.5).Contains(GetBounds(command)), $"{command}"));
972Assert.All(commands, command => Assert.True(box.Contains(GetBounds(command)), $"{glyph}: {GetBounds(command)}"));
1001Assert.All(commands, command => Assert.True(box.Contains(GetBounds(command)), $"{icon}: {GetBounds(command)}"));