Class UnityAudioPlayerSourcePoolTests
The stateless bookkeeping over a service's pooled sources and their states: allocating states, finding the first free slot, listing replaceable candidates and stamping a started slot with the next sequence.
Inherited Members
Namespace: Serenity.UnityAudioPlayer.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityAudioPlayerSourcePoolTests
Constructors
UnityAudioPlayerSourcePoolTests()
Declaration
public UnityAudioPlayerSourcePoolTests()
Methods
AllocateStates_NullPool_ReturnsNull()
Declaration
public void AllocateStates_NullPool_ReturnsNull()
AllocateStates_Pool_ReturnsOneStateBoundToEachSource()
Declaration
public void AllocateStates_Pool_ReturnsOneStateBoundToEachSource()
BuildActiveCandidates_NoSourcePlaying_IsEmpty()
Declaration
public void BuildActiveCandidates_NoSourcePlaying_IsEmpty()
BuildActiveCandidates_NullPool_IsEmpty()
Declaration
public void BuildActiveCandidates_NullPool_IsEmpty()
FindFirstFreeIndex_FirstSourceMissing_SkipsIt()
Declaration
public void FindFirstFreeIndex_FirstSourceMissing_SkipsIt()
FindFirstFreeIndex_IdlePool_ReturnsTheFirstSource()
Declaration
public void FindFirstFreeIndex_IdlePool_ReturnsTheFirstSource()
FindFirstFreeIndex_NullPool_ReturnsNoFreeSource()
Declaration
public void FindFirstFreeIndex_NullPool_ReturnsNoFreeSource()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()
TryRecordStart_MissingState_CreatesItForTheSource()
Declaration
public void TryRecordStart_MissingState_CreatesItForTheSource()
TryRecordStart_NoStates_ChangesNothingAndKeepsTheSequence()
Declaration
public void TryRecordStart_NoStates_ChangesNothingAndKeepsTheSequence()
TryRecordStart_SlotInRange_StampsTheClipAndTheNextSequence()
Declaration
public void TryRecordStart_SlotInRange_StampsTheClipAndTheNextSequence()
TryRecordStart_SlotOutOfRange_ChangesNothingAndKeepsTheSequence(int)
Declaration
public void TryRecordStart_SlotOutOfRange_ChangesNothingAndKeepsTheSequence(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index |