logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.Global.Tests.Application

    Classes

    AdoptedIdentityRulesTests

    Tests for AdoptedIdentityRules: the pure decision behind adoption's Id renaming, moved here (from Serenity.CreateGame.Infrastructure.Editor.Adoption) alongside the declarative reference table its RenamedId(string) pairing feeds (FoundationReferenceIndex's adopted-counterpart lookup). Every cloned asset is renamed now — there is no singleton exception left to test.

    CachedServiceRefTests

    Tests for CachedServiceRef<TService>.

    CollectionSettingsSelectionTests

    Tests for WithoutShadowedTwins<T>(IReadOnlyList<T>, Func<T, string>, out IReadOnlyList<string>): the rule that drops a shipped collection member once the project owns the adopted clone made from it. Applied to plain string candidates so the policy itself stays engine-agnostic (exemplar: SingletonSettingsSelectionTests).

    ComponentDataTests

    Tests for ComponentData, validating construction and property assignment.

    ComponentLoggerTests

    Tests for ComponentLogger.

    ComponentTarget

    DefaultServiceLocatorTests

    Tests for DefaultServiceLocator.

    DefaultStringArgumentResolverTests

    Tests for DefaultStringArgumentResolver.

    EventDispatcherActionTests

    Tests for EventDispatcherAction and CreateEventDispatcherServiceInput.

    EventSignalTests

    Tests for Global application event signals.

    FileStoreTests

    Tests for FileStore.

    FoundationIdReferenceAttributeTests

    Tests for FoundationIdReferenceAttribute: constructor stores the definition type, attribute usage metadata, and field applicability via reflection.

    FoundationIdentityRulesTests

    Tests for FoundationIdentityRules: the shared Id/Guid uniqueness rules, plus ClassifyDuplicateIdGroup(IGrouping<string, IdentityRecord>, Func<IdentityRecord, bool>) — the ownership-aware read of a duplicate-Id group that lets a project-owned clone shadow a shipped asset with the same Id instead of being flagged as a genuine conflict.

    GameSettingsAdvancedDtoTests

    Tests for SetGameSettingsValueInput, OnGameSettingsValueUpdatedInput, GetGameSettingsValue DTOs.

    GameSettingsDtoTests

    Tests for all GameSettings DTOs in Serenity.Global.Application.

    GameSettingsEventsAndUseCasesTests

    Tests for GameSettings events and use cases.

    GlobalApplicationContractTests

    Contract tests for Global Application interfaces consumed by other aggregates. Protects interface shapes that Character, GameMode, and other aggregates depend on.

    Key consumers:

    • Character.Application → IService (via ICharacterService : IService)
    • GameMode.Application → IService (via IGameModeService : IService)
    • All aggregates → IInstaller, IController, IViewBase

    InstanceTarget

    LoggingDtoAndUseCaseTests

    Tests for logging DTOs, use cases, and ComponentLogger.

    NoCtorTarget

    NullStringArgumentResolver

    A resolver that always returns false, forcing ReflectionCallTask to fall back to ConvertFromString for argument conversion.

    PersistenceAppendBytesTests

    Exhaustive tests for PersistenceAppendBytes.

    PersistenceTests

    Tests for all Persistence DTOs and use cases.

    PlainTarget

    Plain C# target with no Unity type in signatures, used for regression testing conservative dispatch.

    ReflectionCallTaskTests

    Exhaustive tests for ReflectionCallTask.

    ReflectionCallTaskTests.ServiceMarker

    ReflectionCallTaskTests.Unconvertible

    RequiredReferenceAttributeTests

    Tests for RequiredReferenceAttribute: constructors store severity and subsystem description, attribute usage metadata, and field applicability via reflection.

    SOTarget

    ServiceLocatorBridgeTests

    Tests for ServiceLocatorBridge.

    TaskingDtoTests

    Tests for tasking DTOs, TaskBuildContext, and TaskBuildContextFactory.

    UseCaseImplementationTests

    Tests for the use case interface family through realistic sample implementations. Validates invocation patterns, input/output flow, and cancellation token propagation. These implementations mirror how real aggregates (Menu, MusicPlayer, AssetPrefetcher) use the contracts.

    ViewRouterTests

    Behavioral tests for ViewRouter: provider registration, id resolution across providers, show/hide delegation, current-view tracking, auto-hide of the previous view, and the initial-view path. Uses small in-test fakes for IViewProvider and ILogService so the suite stays pure C# (no Unity engine).

    Structs

    ReflectionCallTaskTests.UnparseableStruct

    Interfaces

    ReflectionCallTaskTests.ILegacyAssetTarget

    Enums

    ReflectionCallTaskTests.CfsColor

    ReflectionCallTaskTests.TestEnum

    In this article
    © 2026 Serenity. All Rights Reserved