Class AdoptedReferenceBackfillScopeTests
EditMode tests for Serenity.CreateGame.Infrastructure.Editor.Adoption.AdoptedReferenceBackfillScope.IsInScope(System.String,System.String,System.Collections.Generic.IReadOnlyCollection{System.String}) — covers the fold onto
FoundationReferenceWalker.ShouldWalk: an AssetKey-only holder (an [AssetPathField] string
field, never an IFoundationSettings) must be in scope
too, not only a foundation-settings asset with its own declared contract row.
Inherited Members
Namespace: Serenity.CreateGame.Tests.Editor
Assembly: Serenity.CreateGame.Tests.Editor.dll
Syntax
public class AdoptedReferenceBackfillScopeTests
Constructors
AdoptedReferenceBackfillScopeTests()
Declaration
public AdoptedReferenceBackfillScopeTests()
Methods
IsInScope_AssetKeyOnlyHolderUnderOutputRoot_ReturnsTrue()
Declaration
public void IsInScope_AssetKeyOnlyHolderUnderOutputRoot_ReturnsTrue()
IsInScope_EveryContractedOwnerTypeUnderOutputRoot_ReturnsTrue()
The repair covers the WHOLE contract table, not the rows a bug report happened to name: every owner type FoundationReferenceContracts declares a row for must be admitted by the back-fill's own scope predicate, so a project-owned asset of that type under the output root is always re-pointed by the next adoption action, whatever order the two sides were adopted in.
Declaration
public void IsInScope_EveryContractedOwnerTypeUnderOutputRoot_ReturnsTrue()
IsInScope_PlainScriptableObjectWithNoContractUnderOutputRoot_ReturnsFalse()
Declaration
public void IsInScope_PlainScriptableObjectWithNoContractUnderOutputRoot_ReturnsFalse()
OneTimeSetUp()
Declaration
public static void OneTimeSetUp()
OneTimeTearDown()
Declaration
public static void OneTimeTearDown()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()