Skip to content
Project referenceDevelopmentEngine ccf7d03f

Runtime startup and session ownership tests

Section titled “Runtime startup and session ownership tests”

Inno.Runtime.Tests owns the behavior described below. Use this guide to find relevant assertions and their environment; the scenario list is not a current passing result.

Adapter catalogs freeze registration snapshots, accept open identities without creating services and reject null or duplicate providers. Presentation settings verify centered 16:9 defaults, stretch behavior and invalid-resolution rejection.

Prepared content is checked and retired before platform adapters start. Metadata copies both documents before a borrowed source can reuse its buffers. Failed metadata retires transferred module ownership; prior cancellation does not acquire borrowed content or transfer modules. Complete Player fixtures run from owned memory content without requiring a filesystem. Session log sinks retire independently, and a failing host log factory compensates startup without poisoning the host.

Sessions isolate scene and scaled/unscaled/paused time state. Script facades reject calls outside an active session. Failed startup drains before releasing factory resources; pending stop preserves dependencies and does not repeat completed owners. Required capabilities fail before allocation, optional failures propagate, and a required consumer cannot run without its failed dependency.

Static deployment freezes manifests, checks linked code identity before activation and rejects ambiguous or incomplete module closure. Generic factories do not invent discovered constructions, retained registrars cannot mutate publication, and rejected contributors retire their registrar. Static settings use contributed metadata/factories, rejecting missing factories during candidate preparation.

The project declares the contract layer. Use actual module, content and session dependencies. Successful memory-backed startup is evidence for that declared fixture, not every platform, adapter or device. Keep failing-frame and pending-retirement cleanup intact.

Generate and inspect one validation plan, then execute that plan with its evaluated target, product and output properties. A focused test filter helps diagnosis; it does not replace required owner evidence. The pinned project file contains the actual references and metadata.

Representative entry points are checked against the pinned source. The linked files retain all assertions and parameterized cases.

Read the complete assertions. Representative entry points:

  • PresentationRegistrationUsesAnImmutableOpenCatalog
  • CustomIdentitiesAreAcceptedWithoutCreatingServices
  • AllDomainsRejectDuplicateAndNullProviders
  • CapturedRegistrationsCannotBeChangedByTheirSourceCollection

Read the complete assertions. Representative entry points:

  • DefaultPresentationCentersCompleteSixteenByNineFrame
  • StretchPresentationUsesCompleteAvailableSurface
  • PresentationRejectsInvalidReferenceResolution
  • RuntimeHostRegistersDefaultPresentationProjectSetting

Read the complete assertions. Representative entry points:

  • PreparedContentIsCheckedAndRetiredBeforeAnyPlatformAdapterStarts
  • MetadataCopiesBothDocumentsBeforeTheBorrowedSourceCanReuseItsBuffers
  • MetadataFailureRetiresTheTransferredModuleOwnerBeforeAnyAdapterOrContentPreparation
  • CancellationBeforeStartupDoesNotAcquireBorrowedContentOrTransferModuleOwnership

Read the complete assertions. Representative entry points:

  • PlayerSessionsReadOwnedMemoryContentAndRetireOnlyTheirOwnLogSinks
  • AFailingHostLogFactoryCompensatesStartupAndKeepsTheHostUsable

Player Without File System Tests.Startup.cs

Section titled “Player Without File System Tests.Startup.cs”

Read the complete assertions. Representative entry points:

  • CompletePlayerStartsFromOwnedMemoryAndRetiresAfterSuccessfulOrFailingFrames

Read the complete assertions. Representative entry points:

  • FailedStartupDrainsBeforeReleasingFactoryResources
  • StopHookPendingRetainsDependenciesWithoutRepeatingCompletedOwners
  • PendingSessionRetainsDependenciesAndCanBeRetriedThroughHost

Read the complete assertions. Representative entry points:

  • InlineHostDeliveryPersistsSessionLogsBeforeTheProducerReturns
  • MultipleHostsAndSessionsKeepSceneAndTimeStateIsolated
  • ScriptFacadesRejectCallsOutsideAnActiveSession
  • TimeSeparatesScaledUnscaledAndPausedProgress

Read the complete assertions. Representative entry points:

  • MissingRequiredCapabilityRejectsBeforeFactoryAllocation
  • SuppliedCapabilitiesAndDescriptorCollectionsAreImmutableSnapshots
  • OptionalUnavailabilityPropagatesToOptionalConsumers
  • RequiredConsumerCannotRunWithoutFailedOptionalDependency

Read the complete assertions. Representative entry points:

  • ManifestMutationCannotChangeFrozenDeployment
  • LinkedIdentityRejectsDifferentCodeBeforeModuleActivation
  • ClosureRejectsSharedAssemblyOwnersAndMissingUpstreamModules
  • CodeInputIdentityRejectsMalformedManifestData

Read the complete assertions. Representative entry points:

  • FactoriesDoNotIntroduceClosedConstructionsIntoDiscovery
  • AConstructionRequiresItsOwningDeclaration
  • RetainedRegistrarCannotMutateThePublishedCatalog
  • FailedContributorAlsoRetiresItsRegistrar

Read the complete assertions. Representative entry points:

  • SettingsUseContributedMetadataAndFactoryWithoutReflectiveDeclarations
  • SettingsRejectMissingFactoriesDuringCandidatePreparation

Follow suite maintenance. Fixtures own their own sessions, temporary files and processes. Preserve thread, release and failure ordering; do not remove another owner’s lock or widen production visibility.