Skip to content
Project referenceDevelopmentEngine ccf7d03f

Inno.Scene.Tests verifies the Scene contracts through their public entry points. Use this page to locate relevant assertions; it is not a report that these tests passed for your current change.

Scene and prefab round trips preserve canonical identity, hierarchy, state and direct references. Prefab instantiation remaps internal identities independently of a scene. Tests cover system lifecycle and manual order, stable queries after dense removal, project-scoped layer identity, symmetric interaction rules and parent transforms with rotation or nonuniform scale. Removing and restoring a plugin generation preserves its component as Missing state until recovery.

The project declares the contract validation layer. Use the shared validation workflow to select its actual dependencies and environment. Inspect the pinned project file for package and project references.

A focused diagnostic from the engine root is:

Terminal window
dotnet test tests/scene/Inno.Scene.Tests/Inno.Scene.Tests.csproj --configuration Debug --disable-build-servers -m:1 -nodeReuse:false

Use --filter FullyQualifiedName~MethodName to investigate one case. A filtered run does not replace the obligations in the validation plan. Restore the declared SDK, packages and any tool/process prerequisites before executing; preserve cancellation, thread and cleanup requirements.

These representative methods are preserved from the original reference and checked against the pinned source. The linked files contain all assertions and parameterized cases.

Read the assertions. Representative entry points:

  • SceneAsset_CaptureSaveLoadInstantiate_PreservesCanonicalIdentity
  • PrefabAsset_IsSceneIndependentAndRemapsInternalReferences
  • LoadedScene_InstantiatesConnectedPrefabsDuringUpdate
  • SceneAsset_DirectAssetReferenceUsesCanonicalInstanceAndDependencyMetadata

Read the assertions. Representative entry points:

  • GameLayer_ValidatesSupportedSlotRange
  • GameLayerMask_ComposesAndFiltersLayers
  • GameLayerCatalog_EnforcesUniqueDefinitionsAndSymmetricInteractions
  • ProjectScopedIds_FollowProjectIdentityWithoutRewritingDefinitions

Read the assertions. Representative entry points:

  • AddResetUniquenessAndMultiplePolicyUsePublicSceneApi
  • LifecycleDispatchesImmediateActivationAndEditModeRemovalDoesNotDestroy
  • SceneRoundtripPreservesSystemsStateIdentityOrderAndGraphReferences
  • ManualSystemOrderIsIndependentFromExecutionPriorityAndBreaksPriorityTies

Read the assertions. Representative entry points:

  • RemovingAndRestoringAPluginGenerationPreservesItsComponentAsMissingState

Read the assertions. Representative entry points:

  • CreateObject_StoresDataInSceneStore_AndReturnsFacade
  • NameAndTagQueriesTrackObjectMetadataChangesInStorageOrder
  • OrderedSceneQueriesPreserveCreationOrderAfterDenseStorageRemoval
  • TagRejectsEmptyValuesAndTrimsSurroundingWhitespace

Read the assertions. Representative entry points:

  • MissingSceneTypeDiagnosticPreservesStableIdentity
  • SceneRoundtrip_PreservesHierarchyOrderStateAndDirectReferences
  • PrefabInstantiation_RemapsIdentitiesAndIsolatesInternalReferences
  • SceneRoundtripPreservesManualComponentAndSystemOrder

Read the assertions. Representative entry points:

  • SetParent_PreservesWorldTransform_AndComputesLocalWithNonUniformScale
  • SetParent_WithRotation_PreservesWorldRotation_WithLocalRotationByInverseParent
  • SetParent_UnparentPreservesWorldTransform
  • SetParent_RejectsSelfAndDescendantCycle

Follow the shared suite-maintenance guidance. Preserve this suite’s owner-thread, resource-release and failure assertions when adding cases.