Class ProjectWiringPinResolutionTests
EditMode tests for Serenity.CreateGame.Infrastructure.Editor.Wiring.ProjectWiringRunner.ResolveProjectOwnedSettingsPathOrNothing(System.String), the rule
behind the four InheritedObjectReference wiring rows: a generated boot scene is pinned to the
project's own settings asset when it has one, and to nothing at all when it does not — leaving the
shipped installer prefab's own pin in place rather than writing a package path the next Serenity update
overwrites.
Every candidate is a ProjectWiringPinTestSettings asset created through a ScratchAssetFixture, so the candidate set is exactly what each test says it is: under Serenity.CreateGame.Tests.Editor.ProjectWiringPinResolutionTests.PackageScratchFolder for shipped content, under Serenity.CreateGame.Tests.Editor.ProjectWiringPinResolutionTests.ProjectScratchFolder for the project's own.
Inherited Members
Namespace: Serenity.CreateGame.Tests.Editor
Assembly: Serenity.CreateGame.Tests.Editor.dll
Syntax
public class ProjectWiringPinResolutionTests
Constructors
ProjectWiringPinResolutionTests()
Declaration
public ProjectWiringPinResolutionTests()
Methods
ResolveProjectOwnedSettingsPathOrNothing_AdoptedCloneBesideShipped_ReturnsTheAdoptedPath()
Declaration
public void ResolveProjectOwnedSettingsPathOrNothing_AdoptedCloneBesideShipped_ReturnsTheAdoptedPath()
ResolveProjectOwnedSettingsPathOrNothing_NoCandidateAtAll_ReturnsNothing()
Declaration
public void ResolveProjectOwnedSettingsPathOrNothing_NoCandidateAtAll_ReturnsNothing()
ResolveProjectOwnedSettingsPathOrNothing_OnlyTheShippedAsset_ReturnsNothingSoThePrefabPinSurvives()
Declaration
public void ResolveProjectOwnedSettingsPathOrNothing_OnlyTheShippedAsset_ReturnsNothingSoThePrefabPinSurvives()
ResolveProjectOwnedSettingsPathOrNothing_TwoProjectOwnedCandidates_ReturnsTheLowestPathOrdinal()
Two project-owned candidates is the Settings step's own ambiguity to report, not a reason to write
an arbitrary one: the pick still happens, through SingletonSettingsSelection's tie-break on
the value it is handed as the candidate's Id — here the asset path itself — so two runs of the same
project never pin two different assets.
Declaration
public void ResolveProjectOwnedSettingsPathOrNothing_TwoProjectOwnedCandidates_ReturnsTheLowestPathOrdinal()
ResolveProjectOwnedSettingsPathOrNothing_TwoShippedAssetsAndNoAdoption_ReturnsNothing()
Declaration
public void ResolveProjectOwnedSettingsPathOrNothing_TwoShippedAssetsAndNoAdoption_ReturnsNothing()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()