RunicFileDialogCall record

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

public sealed record RunicFileDialogCall : IEquatable<RunicFileDialogCall>

Inherits or implements IEquatable.

One file dialog the application showed, with the options it passed.

Parameters

Kind

The dialog method.

Outcome

How the dialog ended.

Constructors

RunicFileDialogCall

public RunicFileDialogCall(RunicFileDialogKind Kind, RunicTestOutcome Outcome)

One file dialog the application showed, with the options it passed.

Parameters

Kind

The dialog method.

Outcome

How the dialog ended.

Properties

Directories

public ImmutableArray<string> Directories { get; init; }

The selected directories' paths.

DirectoryOptions

public OpenDirectoryOptions? DirectoryOptions { get; init; }

The options of a directory dialog.

Files

public ImmutableArray<RunicTestFile> Files { get; init; }

The selected files, empty for a directory selection or a dialog that selected nothing.

Kind

public RunicFileDialogKind Kind { get; init; }

The dialog method.

OpenOptions

public OpenFileOptions? OpenOptions { get; init; }

The options of an open-file or open-document dialog.

Outcome

public RunicTestOutcome Outcome { get; init; }

How the dialog ended.

SaveOptions

public SaveFileOptions? SaveOptions { get; init; }

The options of a save dialog.

Scripted

public bool Scripted { get; init; }

Whether a scripted response answered the dialog; false when the queue was empty.