logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class WizardRealRunDriver<TWindow>

    A WizardRealRunDriverBase typed to its window, so a driver arranges and presses through the window's own internal test seams. It opens the window either unshown or through its own menu item — the two ways the window's existing tests open it — and closes it the same way.

    Inheritance
    object
    WizardRealRunDriverBase
    WizardRealRunDriver<TWindow>
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tests.Shared.Editor
    Assembly: Serenity.Tests.Shared.Editor.dll
    Syntax
    public abstract class WizardRealRunDriver<TWindow> : WizardRealRunDriverBase where TWindow : SerenityStepWizardWindowBase
    Type Parameters
    Name Description
    TWindow

    The wizard window this driver runs for real.

    Constructors

    WizardRealRunDriver()

    Declaration
    protected WizardRealRunDriver()

    Properties

    WindowType

    The window this driver runs for real.

    Declaration
    public override sealed Type WindowType { get; }
    Property Value
    Type Description
    Type
    Overrides
    WizardRealRunDriverBase.WindowType

    Methods

    Arrange(string)

    See OpenArrangedWindow(string).

    Declaration
    protected abstract TWindow Arrange(string fixtureFolder)
    Parameters
    Type Name Description
    string fixtureFolder
    Returns
    Type Description
    TWindow

    CloseWindow(SerenityStepWizardWindowBase)

    Releases the window, the way it was opened.

    Declaration
    public override sealed void CloseWindow(SerenityStepWizardWindowBase window)
    Parameters
    Type Name Description
    SerenityStepWizardWindowBase window
    Overrides
    WizardRealRunDriverBase.CloseWindow(SerenityStepWizardWindowBase)

    CreateUnshownWindow()

    A fresh window that is never shown, so no project-wide scan its menu item runs on open reaches past the fixture.

    Declaration
    protected static TWindow CreateUnshownWindow()
    Returns
    Type Description
    TWindow

    OpenArrangedWindow(string)

    Opens WindowType with nothing left to decide before its primary action: every folder it writes to is fixtureFolder or below it, and every asset it updates was created there first. The folder exists and is empty when this is called; everything under it is removed afterwards, Addressables entries first.

    Declaration
    public override sealed SerenityStepWizardWindowBase OpenArrangedWindow(string fixtureFolder)
    Parameters
    Type Name Description
    string fixtureFolder
    Returns
    Type Description
    SerenityStepWizardWindowBase
    Overrides
    WizardRealRunDriverBase.OpenArrangedWindow(string)

    OpenThroughItsMenu(Action)

    The window as its own menu item opens it.

    Declaration
    protected TWindow OpenThroughItsMenu(Action openMenuItem)
    Parameters
    Type Name Description
    Action openMenuItem
    Returns
    Type Description
    TWindow

    Press(TWindow)

    Presses the window's real primary action. Defaults to the footer's own press, which runs the window's Create/Update while the run is ahead.

    Declaration
    protected virtual void Press(TWindow window)
    Parameters
    Type Name Description
    TWindow window

    PressRealPrimaryAction(SerenityStepWizardWindowBase)

    Presses the window's real primary action.

    Declaration
    public override sealed void PressRealPrimaryAction(SerenityStepWizardWindowBase window)
    Parameters
    Type Name Description
    SerenityStepWizardWindowBase window
    Overrides
    WizardRealRunDriverBase.PressRealPrimaryAction(SerenityStepWizardWindowBase)
    In this article
    © 2026 Serenity. All Rights Reserved