Runic.Application.Testing
InMemoryBridgeTransportclassAn in-memory
IBridgeTransportfor headless tests: requests run the window's real request handler and generated Bridges, and pushes are recorded instead of reaching a page.RunicAnnouncementCallrecordOne screen-reader announcement the application made.
RunicBridgeMessagerecordA push that
InMemoryBridgeTransportreceived from its window.RunicCallReply<TModel>classThe reply of a
setorcommandrequest.RunicCollectionChangerecordOne keyed collection edit of a delta frame.
RunicCollectionChangeKindenumThe edit a
RunicCollectionChangemakes, named as inNotifyCollectionChangedAction.RunicContextMenuCallrecordOne context menu the application showed and the item chosen.
RunicDescendantProcessclassA descendant process of a
RunicServeOnlyApplication, asRunicServeOnlyApplication.GetDescendantProcesseslisted it.RunicFieldWriteReceipt<TModel>classThe receipt of a checked field write.
RunicFieldWriteReceiptKindenumHow a checked field write ended (
RunicFieldWriteReceipt.Kind).RunicFileDialogCallrecordOne file dialog the application showed, with the options it passed.
RunicFileDialogKindenumWhich
IFileDialogsmethod a test window's dialog call was.RunicLaunchCallrecordOne file or URI the application handed to a native application.
RunicMemberSetrecordA member's new value in a frame: a
setchange.RunicMessageBoxCallrecordOne message box the application showed and how it was answered.
A
navigation-pathpush (navigation-path/1).Saves and restores navigation paths in tests, as an application does across a restart.
The reply to a window's
navigationrequest (navigation-path/1):RunicWindowTestHost.NavigateBackAsyncorRunicWindowTestHost.OpenNavigationPathAsync.The outcome of
RunicNavigationPathTesting.RestorePathAsync.Lifecycle counts for tests of the navigator.
RunicOperationAdmissionKindenumHow a
Start{Command}route answered (RunicTestOperation.Admission).RunicOperationCancelKindenumHow .NET answered a cancellation request (
RunicTestOperation.Cancel).RunicOperationStatusrecordThe status of an operation, as the generated client reads it.
RunicOperationStatusKindenumThe status of an operation (
RunicOperationStatus.Kind).RunicOperationStreamPageclassA page of a streamed operation's items, read with
RunicTestOperation.ReadStream.RunicPathWatchTesterclassDrives the
RunicPathWatchers started with itsRunicPathWatchTester.Options: their debounce and polling run on aFakeTimeProvider, 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.RunicPublicationKindenumWhat a pushed frame carries.
RunicQueryRowsrecordThe rows of a
query-rowsreply, as a page receives them.RunicRegionCollectionStaterecordA region collection in a View's state (
RunicRegionCollectionAttribute,region-collections/1): its regions in order and the selected index.RunicRegionSlotrecordOne region of a region collection in a View's state (
RunicRegionCollectionAttribute).RunicRowLoadrecord structOne load of a
RunicTestRowSource.RunicServedBlobrecordThe response a window's host gives for a blob URL (blobs/1), as
RunicWindowTestHost.ReadBlobAsyncserves it.RunicServeOnlyApplicationclassA built Runic application running in serve-only mode for a browser test: started with
RUNIC_APPLICATION_SERVE_ONLY=1and withoutDISPLAYorWAYLAND_DISPLAY, it serves its Window's page atRunicServeOnlyApplication.Urlinstead of opening a window, on Runic Desktop and CS-WebUI alike.RunicServeOnlyClipboardclassScripts the clipboard of a serve-only application (
RunicServeOnlyTestPlatform.Clipboard), with the names ofRunicTestClipboard.RunicServeOnlyContextMenusclassScripts the context menus of a serve-only application (
RunicServeOnlyTestPlatform.ContextMenus), with the names ofRunicTestContextMenus.RunicServeOnlyFileDialogsclassScripts the file dialogs of a serve-only application (
RunicServeOnlyTestPlatform.FileDialogs), with the names ofRunicTestFileDialogs.RunicServeOnlyMessageBoxesclassScripts the message boxes of a serve-only application (
RunicServeOnlyTestPlatform.MessageBoxes), with the names ofRunicTestMessageBoxes.RunicServeOnlyTestPlatformclassScripts 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 ofRunicTestPlatform, across the process boundary.RunicServeOnlyTestPlatformAttributeclassMarks an application's entry assembly as a test build that may use
RunicTestPlatformServiceCollectionExtensions.AddRunicServeOnlyTestPlatform.RunicStateTracker<TModel>classFollows 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.
RunicTestClipboardclassAn in-memory
IDesktopClipboardfor tests: it holds oneDesktopClipboardContent, checks writes with the rules of the real clipboard, records each write and reports changes to watches.RunicTestComponentrecordA guest's component as
RunicTestHostedWindow.AttachComponentAsyncattached it (region-component/1).RunicTestContextMenusclassScripted context menus for
IWindowPlatformServices.ShowContextMenuAsyncin tests: each menu takes the next queued choice and is recorded.RunicTestDialogAnswerclassHow the user of a
RunicTestHostanswers a dialog or context menu (RunicTestHostOptions.FileDialog,RunicTestHostOptions.MessageBox,RunicTestHostOptions.ContextMenu), or how the host's platform or policy turns it away.RunicTestDialogKindenumWhat a
RunicTestDialogRequestasks for.RunicTestDialogRequestrecordA dialog or context menu a guest asked a
RunicTestHostto show for one of its windows (dialogs/1,menus/1).RunicTestFileclassAn in-memory file that
RunicTestFileDialogshands out: the selection of an open dialog or the destination of a save dialog.RunicTestFileDialogsclassScripted
IFileDialogsfor tests: each dialog takes the next queued response, hands out in-memoryRunicTestFileleases that follow the real lease and commit rules, and records its options.RunicTestGuestrecordThe guest application as its
helloreply names it.RunicTestHostclassPlays 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'swindow-openand records its presentation requests, and exposes each Window's one-time launch address for a browser test.RunicTestHostedWindowclassA window a guest asked a
RunicTestHostfor.RunicTestHostOptionsrecordThe options of a
RunicTestHost.RunicTestLaunchRequestrecordA file or link a guest asked the test host to open (
launch).RunicTestMessageBoxesclassScripted
IDesktopMessageBoxesfor tests: each box takes the next queued answer and is recorded.Creates navigation entries for unit tests of content that takes a
NavigationEntryContext.One navigation entry of a test navigator, created by
RunicTestNavigationEntry.CreateAsync, with the transitions that change its state.RunicTestNotificationsclassRecording
IDesktopNotificationsfor tests: shown and removed notifications are kept, andRunicTestNotifications.ActivateraisesRunicTestNotifications.Activatedas a click on a notification or one of its actions would.RunicTestOperationclassAn operation started with a
startrequest.RunicTestOutcomeenumHow a scripted dialog, message box or context menu ended.
RunicTestPlatformclassThe platform services of one test window: scripted, recording fakes of
IWindowPlatformServicesforRunicWindowTestHost, a serve-only browser test, or a ViewModel a test builds itself.RunicTestPlatformEventrecordOne call the application made to its test platform fakes, read by a serve-only browser test.
RunicTestPlatformServiceCollectionExtensionsclassRegisters the test platform fakes in place of the application's platform services.
RunicTestPresentation<TModel>classA 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.
RunicTestPresentationKindenumThe kind of a
RunicTestPresentationRequest: a presentation request of the host protocol, whose wire token each value names.RunicTestPresentationRequestrecordA presentation request a guest sent for one of its windows, such as
presentorset-full-screen.RunicTestRowSource<TRow, TKey>classAn in-memory
IRunicRowSourcefor tests of query collections: it serves a list throughRunicQueryFields, with optional latency, and records every load, count and search, so a test can assert what a page's scrolling and sorting loaded.RunicTestWindowclassA real
RunicWindowopened headless byRunicWindowTestHost.CreateWindowAsync, or by the application while it runs, for example from a command throughIRunicWindowService.RunicTestWindowPresentationclassA recording
IRunicWindowPresentationfor 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.RunicTestWindowPresentationServiceCollectionExtensionsclassRegisters
RunicTestWindowPresentationfor dependency injection.RunicTextChangerecordText appended to an append-only text field in a frame: a
textchange.RunicTextSplicerecordA text member's splice in a frame (
text-splice/1): asplicechange.RunicViewDriver<TModel>classSends the Views protocol 4 requests of one
TModelroute by ViewModel member, as the generated TypeScript client does, on the transport's test connection.RunicViewPublicationclassOne push of a route's state: a full state, a frame of changes, or a failure notice.
RunicViewRequestrecordA view request that a
RunicTestPresentationreceived, as a page's handler would.RunicViewState<TModel>classA generated wire state of a
TModelroute, read by ViewModel member.RunicWindowPresentationRequestrecordA request to a
RunicTestWindowPresentation, asRunicTestWindowPresentation.Requestsrecords it.RunicWindowPresentationRequestKindenumWhich
IRunicWindowPresentationrequest aRunicWindowPresentationRequestrecords.RunicWindowTestHostclassCreates a
RunicWindowTestHostfrom the application's services.RunicWindowTestHost<TViewModel>classOwns one headless Window content session and its generated root attachment.
RunicWindowTestHostOptionsclassConfigures a
RunicWindowTestHost.