10 references to Recent
Aspire.Tray.Tests (10)
src\Aspire.Tray\Common\TrayPanel.cs (8)
260
BeginConfirm(new(PanelConfirmKind.RemoveMissing, PanelSection.
Recent
, host));
654
var recent = target.Key.Section == PanelSection.
Recent
;
712
BeginConfirm(new(PanelConfirmKind.ClearRecent, PanelSection.
Recent
, null));
773
AddSection(PanelSection.
Recent
, state.RecentAppHosts, IsRecentExpanded);
791
if (section == PanelSection.
Recent
&& _confirm is { Kind: PanelConfirmKind.ClearRecent })
1008
case ListItemKind.SectionHeader when item.Section == PanelSection.
Recent
&& _settings is null:
1142
if (section != PanelSection.
Recent
)
1276
if (section == PanelSection.
Recent
)
TrayPanelTests.cs (2)
151
Assert.Equal(2, panel.Scene.Targets.Count(target => target.Kind == PanelTargetKind.Row && target.Key.Section == PanelSection.
Recent
));
640
Assert.Equal(new PanelTargetKey(PanelTargetKind.ConfirmCancel, PanelSection.
Recent
, null), panel.FocusedTarget);