UI Tookit UI Tookit
UI Tookit UI Tookit
DocFX + Singulink = ♥

Search Results for

    Class NavigationTestContext

    Runs test bodies on a single-threaded synchronization context that mimics a UI thread, which TestNavigator and TaskRunner require. All continuations, posted callbacks and fire-and-forget work run on the calling thread in the order they are queued, and any exception thrown by queued work fails the test.

    Inheritance
    object
    NavigationTestContext
    Namespace: Singulink.UI.Navigation.Testing
    Assembly: Singulink.UI.Navigation.Testing.dll
    Syntax
    public static class NavigationTestContext

    Methods

    Name Description
    Run(Func<Task>)

    Runs the specified test body inside a fresh single-threaded synchronization context and blocks until the body and all work it queued has completed.

    Run<TResult>(Func<Task<TResult>>)

    Runs the specified test body inside a fresh single-threaded synchronization context, blocks until the body and all work it queued has completed, and returns the body's result.

    © Singulink. All rights reserved.