1 instantiation of NativeSmokeHarness
aspire-tray (1)
NativeSmokeHarness.cs (1)
63
var harness = new
NativeSmokeHarness
(interactiveSmoke);
26 references to NativeSmokeHarness
aspire-tray (26)
NativeSmokeHarness.cs (1)
63
var
harness = new NativeSmokeHarness(interactiveSmoke);
Program.cs (1)
69
return
NativeSmokeHarness
.Run(options.CliPath, seconds, options.InteractiveSmoke);
TrayApplication.NativeSmoke.cs (24)
180
NativeSmokeHarness
.Require((defaultId & 0xFFFF) == (uint)pending.DefaultId && (defaultId >> 16) == 0x534B,
255
NativeSmokeHarness
.Require(_panel!.ActionsRow is null, "Picking an action must close the action list.");
272
NativeSmokeHarness
.Require(panel.ActionsRow == (row.Key.Section, host) && items.Select(target => target.AccessibleName).SequenceEqual(expected),
275
NativeSmokeHarness
.Require(panel.FocusedTarget == items[0].Key, "Down must move from the More button into the action list.");
280
NativeSmokeHarness
.Require(panel.Scene.Targets.Where(target => target.Kind == PanelTargetKind.OpenIn).Select(target => target.AccessibleName)
287
NativeSmokeHarness
.Require(panel.FocusedTarget == items[0].Key && !panel.Scene.Targets.Any(target => target.Kind == PanelTargetKind.OpenIn),
291
NativeSmokeHarness
.Require(panel.ActionsRow is null && _panelVisible && panel.FocusedTarget?.Kind == PanelTargetKind.More,
329
NativeSmokeHarness
.Require(_panelVisible && (_panel!.FocusedTarget is not null) == keyboard,
333
NativeSmokeHarness
.Require(_panelVisible, "A repeated activation closed the panel it had just opened.");
336
NativeSmokeHarness
.Require(!_panelVisible, "Activating the icon again must close the panel.");
340
NativeSmokeHarness
.Require(!_panel!.IsSettingsOpen, "Settings opened unexpectedly.");
361
NativeSmokeHarness
.Require(_panel.IsSettingsOpen, "Ctrl+comma must open the Settings view in the panel.");
363
NativeSmokeHarness
.Require(!_panel.IsSettingsOpen && _panelVisible, "Escape must leave the Settings view and keep the panel open.");
385
NativeSmokeHarness
.Require(toggle.Role == PanelAccessibleRole.Switch && toggle.Checked == on && toggle.Enabled == enabled
410
NativeSmokeHarness
.Require(_iconAdded, "Explorer restart did not restore the native icon.");
424
NativeSmokeHarness
.Require(_artwork is { Original: not 0, Running: not 0, Attention: not 0, Dimmed: not 0 },
426
NativeSmokeHarness
.Require(_iconAdded && _iconData.Icon == _artwork!.TrayIcon(TrayIconStatusRules.Get(state)),
429
NativeSmokeHarness
.Require(Enum.GetValues<TrayIconStatus>().Select(_artwork!.TrayIcon).Distinct().Count() == 4
434
NativeSmokeHarness
.Require(rows.Select(row => row.Host!.Id).SequenceEqual(
441
NativeSmokeHarness
.Require(row.AccessibleName.StartsWith($"{host.DisplayName}, ", StringComparison.Ordinal)
445
NativeSmokeHarness
.Require(_iconData.CallbackMessage == NativeMethods.TrayCallback, "The icon must report activations to the panel.");
446
NativeSmokeHarness
.Require(panel.Scene.Accessibility.Single(element => element.Key.Label == "header.status").Bounds.CenterY == TrayPanel.HeaderHeight / 2
448
NativeSmokeHarness
.Require(_panelTooltip != 0 && _panelTooltips.Select(tooltip => tooltip.Text).SequenceEqual(
452
NativeSmokeHarness
.Require(panel.Scene.Accessibility.Single(element => element.Target?.Kind == PanelTargetKind.Quit) is