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
WizardRealRunDriver<TWindow>
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
Overrides
Methods
Arrange(string)
Declaration
protected abstract TWindow Arrange(string fixtureFolder)
Parameters
| Type |
Name |
Description |
| string |
fixtureFolder |
|
Returns
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
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
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
The window as its own menu item opens it.
Declaration
protected TWindow OpenThroughItsMenu(Action openMenuItem)
Parameters
| Type |
Name |
Description |
| Action |
openMenuItem |
|
Returns
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