RunicContextMenuCall record

Namespace Runic.Application.Testing in Runic.Application.Testing 0.23.0

public sealed record RunicContextMenuCall : IEquatable<RunicContextMenuCall>

Inherits or implements IEquatable.

One context menu the application showed and the item chosen.

Parameters

Items

The menu's entries.

Options

Where it opened, or null at the pointer.

Outcome

How it ended.

Chosen

The chosen item, or null.

Scripted

Whether a scripted choice ended it; false when the queue was empty.

Constructors

RunicContextMenuCall

public RunicContextMenuCall(ImmutableArray<DesktopMenuEntry> Items, DesktopContextMenuOptions? Options, RunicTestOutcome Outcome, DesktopMenuItem? Chosen, bool Scripted)

One context menu the application showed and the item chosen.

Parameters

Items

The menu's entries.

Options

Where it opened, or null at the pointer.

Outcome

How it ended.

Chosen

The chosen item, or null.

Scripted

Whether a scripted choice ended it; false when the queue was empty.

Properties

Chosen

public DesktopMenuItem? Chosen { get; init; }

The chosen item, or null.

Items

public ImmutableArray<DesktopMenuEntry> Items { get; init; }

The menu's entries.

Options

public DesktopContextMenuOptions? Options { get; init; }

Where it opened, or null at the pointer.

Outcome

public RunicTestOutcome Outcome { get; init; }

How it ended.

Scripted

public bool Scripted { get; init; }

Whether a scripted choice ended it; false when the queue was empty.