RunicMessageBoxCall record

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

public sealed record RunicMessageBoxCall : IEquatable<RunicMessageBoxCall>

Inherits or implements IEquatable.

One message box the application showed and how it was answered.

Parameters

MessageBox

The box as the application passed it.

Outcome

How it ended.

Answer

The button chosen, or null.

Scripted

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

Constructors

RunicMessageBoxCall

public RunicMessageBoxCall(DesktopMessageBox MessageBox, RunicTestOutcome Outcome, DesktopMessageBoxButton? Answer, bool Scripted)

One message box the application showed and how it was answered.

Parameters

MessageBox

The box as the application passed it.

Outcome

How it ended.

Answer

The button chosen, or null.

Scripted

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

Properties

Answer

public DesktopMessageBoxButton? Answer { get; init; }

The button chosen, or null.

MessageBox

public DesktopMessageBox MessageBox { get; init; }

The box as the application passed it.

Outcome

public RunicTestOutcome Outcome { get; init; }

How it ended.

Scripted

public bool Scripted { get; init; }

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