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.
EffectiveSettingsSetTests
The rule a COLLECTION-cardinality system's settings lookup follows, measured on plain ids because the rule is engine-agnostic: a pinned list is the whole set, exactly as authored, and label discovery answers only for an empty field. Beside it, how adoption re-points such a pinned list.
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.
FoundationReferenceFieldGraphTests
The field graph is what turns "a string field carries a declaration" into the contract table, so its reading rules are pinned here on stand-in types: which fields it reaches, the property path it gives them, where a declaration belongs, and what it refuses to follow.
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).