Class WizardAnotherRunReseedContractTests
A wizard never offers to update an asset its fields were not loaded from. The seed guard of Serenity.Global.Infrastructure.Editor.SerenityWizardTargetAsset remembers which asset a run last loaded so that finishing a half-retyped Id does not reload over the author's edits — but "Create Another" resets those fields, so a guard that still remembers the previous run's asset would let the next run resolve the SAME asset, read "Update", and write the reset defaults over it. Every stepped wizard is covered: the contract finds each window's targets by walking its fields rather than through a registration list a new wizard can be written without, and starts the new run through the base's own reset.
Inherited Members
Namespace: Serenity.Tests.Shared.Editor
Assembly: Serenity.Tests.Shared.Editor.dll
Syntax
public class WizardAnotherRunReseedContractTests
Constructors
WizardAnotherRunReseedContractTests()
Declaration
public WizardAnotherRunReseedContractTests()
Methods
EveryWizardTarget_LoadsTheSameAssetAgainOnceTheWizardStartsAnotherRun()
Declaration
public void EveryWizardTarget_LoadsTheSameAssetAgainOnceTheWizardStartsAnotherRun()
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()