Runic.Application.Testing

Version 0.23.0, target framework net10.0. Read from the published package.

Runic.Application.Testing

InMemoryBridgeTransport class

An in-memory IBridgeTransport for headless tests: requests run the window's real request handler and generated Bridges, and pushes are recorded instead of reaching a page.

RunicAnnouncementCall record

One screen-reader announcement the application made.

RunicBridgeMessage record

A push that InMemoryBridgeTransport received from its window.

RunicCallReply<TModel> class

The reply of a set or command request.

RunicCollectionChange record

One keyed collection edit of a delta frame.

RunicCollectionChangeKind enum

The edit a RunicCollectionChange makes, named as in NotifyCollectionChangedAction.

RunicContextMenuCall record

One context menu the application showed and the item chosen.

RunicDescendantProcess class

A descendant process of a RunicServeOnlyApplication, as RunicServeOnlyApplication.GetDescendantProcesses listed it.

RunicFieldWriteReceipt<TModel> class

The receipt of a checked field write.

RunicFieldWriteReceiptKind enum

How a checked field write ended (RunicFieldWriteReceipt.Kind).

RunicFileDialogCall record

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

RunicFileDialogKind enum

Which IFileDialogs method a test window's dialog call was.

RunicLaunchCall record

One file or URI the application handed to a native application.

RunicMemberSet record

A member's new value in a frame: a set change.

RunicMessageBoxCall record

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

RunicNavigationPathPush record

A navigation-path push (navigation-path/1).

RunicNavigationPathTesting class

Saves and restores navigation paths in tests, as an application does across a restart.

RunicNavigationReply record

The reply to a window's navigation request (navigation-path/1): RunicWindowTestHost.NavigateBackAsync or RunicWindowTestHost.OpenNavigationPathAsync.

RunicNavigationRestore record

The outcome of RunicNavigationPathTesting.RestorePathAsync.

RunicNavigationTestExtensions class

Lifecycle counts for tests of the navigator.

RunicOperationAdmissionKind enum

How a Start{Command} route answered (RunicTestOperation.Admission).

RunicOperationCancelKind enum

How .NET answered a cancellation request (RunicTestOperation.Cancel).

RunicOperationStatus record

The status of an operation, as the generated client reads it.

RunicOperationStatusKind enum

The status of an operation (RunicOperationStatus.Kind).

RunicOperationStreamPage class

A page of a streamed operation's items, read with RunicTestOperation.ReadStream.

RunicPathWatchTester class

Drives the RunicPathWatchers started with its RunicPathWatchTester.Options: their debounce and polling run on a FakeTimeProvider, a test awaits the next reported change, and a test can report a change of a path it cannot modify, such as /run/current-system.

RunicPublicationKind enum

What a pushed frame carries.

RunicQueryRows record

The rows of a query-rows reply, as a page receives them.

RunicRegionCollectionState record

A region collection in a View's state (RunicRegionCollectionAttribute, region-collections/1): its regions in order and the selected index.

RunicRegionSlot record

One region of a region collection in a View's state (RunicRegionCollectionAttribute).

RunicRowLoad record struct

One load of a RunicTestRowSource.

RunicServedBlob record

The response a window's host gives for a blob URL (blobs/1), as RunicWindowTestHost.ReadBlobAsync serves it.

RunicServeOnlyApplication class

A built Runic application running in serve-only mode for a browser test: started with RUNIC_APPLICATION_SERVE_ONLY=1 and without DISPLAY or WAYLAND_DISPLAY, it serves its Window's page at RunicServeOnlyApplication.Url instead of opening a window, on Runic Desktop and CS-WebUI alike.

RunicServeOnlyClipboard class

Scripts the clipboard of a serve-only application (RunicServeOnlyTestPlatform.Clipboard), with the names of RunicTestClipboard.

RunicServeOnlyContextMenus class

Scripts the context menus of a serve-only application (RunicServeOnlyTestPlatform.ContextMenus), with the names of RunicTestContextMenus.

RunicServeOnlyFileDialogs class

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

RunicServeOnlyMessageBoxes class

Scripts the message boxes of a serve-only application (RunicServeOnlyTestPlatform.MessageBoxes), with the names of RunicTestMessageBoxes.

RunicServeOnlyTestPlatform class

Scripts the platform fakes of an application that a browser test runs with RunicServeOnlyApplication, and reads what the application did with them: the file dialogs, message boxes, context menus and clipboard of RunicTestPlatform, across the process boundary.

RunicServeOnlyTestPlatformAttribute class

Marks an application's entry assembly as a test build that may use RunicTestPlatformServiceCollectionExtensions.AddRunicServeOnlyTestPlatform.

RunicStateTracker<TModel> class

Follows one route's state the way the generated client does: it starts from a snapshot, replaces it with newer full states, applies collection deltas against their base revision while checking row keys, and records failure notices.

RunicTestClipboard class

An in-memory IDesktopClipboard for tests: it holds one DesktopClipboardContent, checks writes with the rules of the real clipboard, records each write and reports changes to watches.

RunicTestComponent record

A guest's component as RunicTestHostedWindow.AttachComponentAsync attached it (region-component/1).

RunicTestContextMenus class

Scripted context menus for IWindowPlatformServices.ShowContextMenuAsync in tests: each menu takes the next queued choice and is recorded.

RunicTestDialogAnswer class

How the user of a RunicTestHost answers a dialog or context menu (RunicTestHostOptions.FileDialog, RunicTestHostOptions.MessageBox, RunicTestHostOptions.ContextMenu), or how the host's platform or policy turns it away.

RunicTestDialogKind enum

What a RunicTestDialogRequest asks for.

RunicTestDialogRequest record

A dialog or context menu a guest asked a RunicTestHost to show for one of its windows (dialogs/1, menus/1).

RunicTestFile class

An in-memory file that RunicTestFileDialogs hands out: the selection of an open dialog or the destination of a save dialog.

RunicTestFileDialogs class

Scripted IFileDialogs for tests: each dialog takes the next queued response, hands out in-memory RunicTestFile leases that follow the real lease and commit rules, and records its options.

RunicTestGuest record

The guest application as its hello reply names it.

RunicTestHost class

Plays the host of the Runic host protocol (runic-host/1) for a guest application in a test, without a native window: it starts the guest in hosted mode, completes the handshake, answers each Window's window-open and records its presentation requests, and exposes each Window's one-time launch address for a browser test.

RunicTestHostedWindow class

A window a guest asked a RunicTestHost for.

RunicTestHostOptions record

The options of a RunicTestHost.

RunicTestLaunchRequest record

A file or link a guest asked the test host to open (launch).

RunicTestMessageBoxes class

Scripted IDesktopMessageBoxes for tests: each box takes the next queued answer and is recorded.

RunicTestNavigationEntry class

Creates navigation entries for unit tests of content that takes a NavigationEntryContext.

RunicTestNavigationEntry<TContent> class

One navigation entry of a test navigator, created by RunicTestNavigationEntry.CreateAsync, with the transitions that change its state.

RunicTestNotifications class

Recording IDesktopNotifications for tests: shown and removed notifications are kept, and RunicTestNotifications.Activate raises RunicTestNotifications.Activated as a click on a notification or one of its actions would.

RunicTestOperation class

An operation started with a start request.

RunicTestOutcome enum

How a scripted dialog, message box or context menu ended.

RunicTestPlatform class

The platform services of one test window: scripted, recording fakes of IWindowPlatformServices for RunicWindowTestHost, a serve-only browser test, or a ViewModel a test builds itself.

RunicTestPlatformEvent record

One call the application made to its test platform fakes, read by a serve-only browser test.

RunicTestPlatformServiceCollectionExtensions class

Registers the test platform fakes in place of the application's platform services.

RunicTestPresentation<TModel> class

A presentation of a route that a test opened as a page does, which answers the ViewModel's interactions and questions with the handlers the test registers and receives its view requests.

RunicTestPresentationKind enum

The kind of a RunicTestPresentationRequest: a presentation request of the host protocol, whose wire token each value names.

RunicTestPresentationRequest record

A presentation request a guest sent for one of its windows, such as present or set-full-screen.

RunicTestRowSource<TRow, TKey> class

An in-memory IRunicRowSource for tests of query collections: it serves a list through RunicQueryFields, with optional latency, and records every load, count and search, so a test can assert what a page's scrolling and sorting loaded.

RunicTestWindow class

A real RunicWindow opened headless by RunicWindowTestHost.CreateWindowAsync, or by the application while it runs, for example from a command through IRunicWindowService.

RunicTestWindowPresentation class

A recording IRunicWindowPresentation for ViewModel tests: it records every request, behaves like a window that obeys them, and lets the test set the activity, for example to check that a ViewModel pauses polling while its Window is inactive.

RunicTestWindowPresentationServiceCollectionExtensions class

Registers RunicTestWindowPresentation for dependency injection.

RunicTextChange record

Text appended to an append-only text field in a frame: a text change.

RunicTextSplice record

A text member's splice in a frame (text-splice/1): a splice change.

RunicViewDriver<TModel> class

Sends the Views protocol 4 requests of one TModel route by ViewModel member, as the generated TypeScript client does, on the transport's test connection.

RunicViewPublication class

One push of a route's state: a full state, a frame of changes, or a failure notice.

RunicViewRequest record

A view request that a RunicTestPresentation received, as a page's handler would.

RunicViewState<TModel> class

A generated wire state of a TModel route, read by ViewModel member.

RunicWindowPresentationRequest record

A request to a RunicTestWindowPresentation, as RunicTestWindowPresentation.Requests records it.

RunicWindowPresentationRequestKind enum

Which IRunicWindowPresentation request a RunicWindowPresentationRequest records.

RunicWindowTestHost class

Creates a RunicWindowTestHost from the application's services.

RunicWindowTestHost<TViewModel> class

Owns one headless Window content session and its generated root attachment.

RunicWindowTestHostOptions class

Configures a RunicWindowTestHost.