Skip to content
Project referenceDevelopmentEngine ccf7d03f

Inno.Assets.Tests verifies the Assets 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.

The tests distinguish persistent identity from runtime ownership, reject calls without an execution scope and isolate nested or parallel contexts. Independent asset and artifact leases retain canonical values and release exactly once. Retirement cases retain pending work, preserve ordinary sibling failures, reject foreign-owner mutation and prevent a concurrent release from reporting completion while its provider still runs.

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/assets/Inno.Assets.Tests/Inno.Assets.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:

  • ReferenceBridgeDoesNotConvertAnUnfinishedRetirementIntoMissing
  • AssetDependency_UsesPersistentIdentityForEquality
  • AssetObject_DefaultRuntimeState_IsDetachedAndEmpty
  • AssetDependency_IsAnImmutableValueContract

Read the assertions. Representative entry points:

  • Assets_WithoutAnExecutionScope_FailsExplicitly
  • NestedScopes_RestoreThePreviousLookup
  • Scopes_DisposedOutOfOrder_AreRejectedWithoutLosingTheActiveLookup
  • ParallelAsyncFlows_ResolveTheirOwnLookups

Read the assertions. Representative entry points:

  • AssetLeaseRetainsCanonicalAssetAndReleasesExactlyOnce
  • RetentionScopeReleasesChildrenInReverseOrder
  • ArtifactLeaseReadsProviderBytesAndInvalidatesAfterRelease

Read the assertions. Representative entry points:

  • ForeignOwnerCannotMutateOrReleaseCanonicalAsset
  • FailedPayloadHookDoesNotPublishCandidateState
  • ArtifactRetentionCountsIndependentIdempotentLeases

Read the assertions. Representative entry points:

  • TextAsset_Ctor_AssignsValues
  • BinaryAsset_Ctor_AssignsValues

Read the assertions. Representative entry points:

  • PendingLeaseRetainsItsValueAndCallbackUntilReleaseCompletes
  • OrdinaryReleaseFailureIsTerminalAndNeverInvokesTheCallbackTwice
  • WrappedPendingRetainsTheLeaseAndReportsOrdinarySiblingsAfterCompletion
  • ConcurrentReleaseCannotReportCompletionWhileTheProviderIsStillExecuting

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