RunicServeOnlyFileDialogs class

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

public sealed class RunicServeOnlyFileDialogs

Scripts the file dialogs of a serve-only application (RunicServeOnlyTestPlatform.FileDialogs), with the names of RunicTestFileDialogs.

Methods

EnqueueDismissed

public void EnqueueDismissed()

Queues a dismissal of the next file dialog.

EnqueueFailed

public void EnqueueFailed(PlatformFailureCode code)

Queues a failure for the next file dialog.

Parameters

code

The failure it reports.

EnqueueOpen

public void EnqueueOpen(string name, ReadOnlySpan<byte> content)

Queues the selection of an existing file for the next open-file or open-document dialog.

Parameters

name

The file's display name.

content

Its bytes.

EnqueueOpen

public void EnqueueOpen(string name, string text)

Queues the selection of a file with UTF-8 text for the next open dialog.

Parameters

name

The file's display name.

text

Its text.

EnqueueOpenDirectory

public void EnqueueOpenDirectory(params string[] paths)

Queues the selection of directories for the next directory dialog.

Parameters

paths

Fully qualified paths.

EnqueueSave

public void EnqueueSave(string name)

Queues a new save destination for the next save dialog; its commits are recorded with their content.

Parameters

name

The name the user chose.

EnqueueUnavailable

public void EnqueueUnavailable(PlatformUnavailableReason reason)

Queues unavailability for the next file dialog.

Parameters

reason

The reason it reports.