Namespace Serenity.UnityCharacter.Tests.Infrastructure
Classes
CharacterConfigSOTests
Tests for CharacterConfigSO, the ScriptableObject authoring asset. Instances are created with UnityEngine.ScriptableObject.CreateInstance``1. Verifies default values and the ICharacterConfig contract.
InstanceRequestingCharacterPool
A pool subclass that asks for an instance directly, the way a project's own pool can through the protected extension point, without going through Spawn(string, float, float, float, float, float, float, float)'s gates.
UnityCharacterPoolServiceInstanceRequestTests
The pool's instance request is a protected extension point, so a project's own pool can reach it without
the gates Spawn runs first. A character whose prefab has no Character View must be refused there too:
no instance, no exception, and the same single warning per character Spawn writes.
UnityCharacterPoolServiceTests
PlayMode tests for UnityCharacterPoolService, the MonoBehaviour pool. A real prefab (GameObject with an IViewBase component) is supplied so the full spawn / release / reuse path can run. Bind delegates are simple counting lambdas.
UnityCharacterServiceTests
PlayMode tests for UnityCharacterService, the MonoBehaviour character
state manager. Driven via AddComponent; verifies registration, hit/death
lifecycle, snapshots, alive counting, and SO config application.
UnityCharacterViewTests
PlayMode tests for UnityCharacterView, the MonoBehaviour view component.
Driven via AddComponent; covers bind/unbind/show/hide lifecycle.