Class WizardStepErrorContractTests
The rule a stepped wizard's breadcrumb makes unforgiving: it asks EVERY step ahead of the reader for its blocked reason on every repaint, so a step check that dereferences a field the author has not filled in yet throws many times a second on a window that has only just been opened. A missing value is a validation message, never an exception — this contract states that for every wizard StepWizardWindowCatalog finds, on a freshly created window with nothing configured, which is exactly the state an author sees first.
Inherited Members
Namespace: Serenity.Tests.Shared.Editor
Assembly: Serenity.Tests.Shared.Editor.dll
Syntax
public class WizardStepErrorContractTests
Remarks
Reads the fault report Serenity.Global.Infrastructure.Editor.SerenityStepWizardWindowBase.EvaluateEveryStepErrorForTests returns rather than expecting a throw to escape: the base contains a throwing check (reporting the step blocked and logging the exception once) so one bad validator cannot bury the console, and that containment would otherwise make this contract vacuous.
Constructors
WizardStepErrorContractTests()
Declaration
public WizardStepErrorContractTests()
Methods
EveryStepWizardWindow_EvaluatesEveryStepErrorWithoutThrowing()
Declaration
public void EveryStepWizardWindow_EvaluatesEveryStepErrorWithoutThrowing()
TearDown()
Unity resets UnityEngine.TestTools.LogAssert.ignoreFailingMessages per log scope, so the flag this test sets in its own body has to be cleared here rather than leaked into whichever fixture runs next.
Declaration
public void TearDown()