Class UnityWaveSettingsTests
PlayMode tests for the Wave ScriptableObject authoring assets: UnityWaveConfigSO and UnityWaveSetSO, and the UnitySpawnEntry DTO. Serialized lists are private; freshly created instances expose their documented defaults (empty collections, zero index).
Inherited Members
Namespace: Serenity.UnityWave.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityWaveSettingsTests
Constructors
UnityWaveSettingsTests()
Declaration
public UnityWaveSettingsTests()
Methods
UnitySpawnEntry_DefaultInstance_HasDocumentedDefaults()
Declaration
public void UnitySpawnEntry_DefaultInstance_HasDocumentedDefaults()
UnityWaveConfigSO_FreshInstance_HasZeroWaveIndexAndEmptyEntries()
Declaration
public void UnityWaveConfigSO_FreshInstance_HasZeroWaveIndexAndEmptyEntries()
UnityWaveConfigSO_IdAndGuid_AreSerializedFields()
_id/_guid must carry [SerializeField] to survive serialization (domain reload, prefab/asset save) — a plain C# property round-trip like the test above would pass even with the fields missing [SerializeField], since it never goes through Unity's serializer.
Declaration
public void UnityWaveConfigSO_IdAndGuid_AreSerializedFields()
UnityWaveConfigSO_IdAndGuid_AreSettable()
Declaration
public void UnityWaveConfigSO_IdAndGuid_AreSettable()
UnityWaveConfigSO_Implements_IWaveConfig()
Declaration
public void UnityWaveConfigSO_Implements_IWaveConfig()
UnityWaveConfigSO_ToConfig_CountsEveryActorOfEveryEntry()
Declaration
public void UnityWaveConfigSO_ToConfig_CountsEveryActorOfEveryEntry()
UnityWaveConfigSO_ToConfig_ProducesMatchingWaveConfig()
Declaration
public void UnityWaveConfigSO_ToConfig_ProducesMatchingWaveConfig()
UnityWaveSetSO_FreshInstance_HasEmptyWaveCollections()
Declaration
public void UnityWaveSetSO_FreshInstance_HasEmptyWaveCollections()
UnityWaveSetSO_GetWaves_EmptySet_ReturnsEmptyList()
Declaration
public void UnityWaveSetSO_GetWaves_EmptySet_ReturnsEmptyList()
UnityWaveSetSO_IdAndGuid_AreSerializedFields()
_id/_guid must carry [SerializeField] to survive serialization — see the matching UnityWaveConfigSO test above for why the plain property round-trip does not catch this.
Declaration
public void UnityWaveSetSO_IdAndGuid_AreSerializedFields()
UnityWaveSetSO_IdAndGuid_AreSettable()
Declaration
public void UnityWaveSetSO_IdAndGuid_AreSettable()
UnityWaveSetSO_Implements_IWaveSet()
Declaration
public void UnityWaveSetSO_Implements_IWaveSet()