9 references to Recent
Aspire.Tray.Tests (9)
src\Aspire.Tray\Common\TrayPanel.cs (7)
238
BeginConfirm(new(PanelConfirmKind.RemoveMissing, PanelSection.
Recent
, host));
632
var recent = target.Key.Section == PanelSection.
Recent
;
690
BeginConfirm(new(PanelConfirmKind.ClearRecent, PanelSection.
Recent
, null));
750
AddSection(PanelSection.
Recent
, state.RecentAppHosts, IsRecentExpanded);
768
if (section == PanelSection.
Recent
&& _confirm is { Kind: PanelConfirmKind.ClearRecent })
994
if (section != PanelSection.
Recent
)
1128
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);