logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityAudioPlayerServiceFactoryTests

    Tests for UnityAudioPlayerServiceFactory. Only the constructor / wiring is exercised here; the full CreateService path is intentionally not driven because it spins up a UnityAudioPlayerService MonoBehaviour and calls Initialize, which subscribes to events and touches the audio engine — that needs scene/runtime fixtures out of scope for a pure unit test.

    Inheritance
    object
    UnityAudioPlayerServiceFactoryTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityAudioPlayer.Tests.Infrastructure
    Assembly: Tests.dll
    Syntax
    public class UnityAudioPlayerServiceFactoryTests

    Constructors

    UnityAudioPlayerServiceFactoryTests()

    Declaration
    public UnityAudioPlayerServiceFactoryTests()

    Methods

    Ctor_ProducesInstanceImplementingFactoryInterface()

    Declaration
    public void Ctor_ProducesInstanceImplementingFactoryInterface()

    Ctor_WithConcreteEmitterFactory_DoesNotThrow()

    Declaration
    public void Ctor_WithConcreteEmitterFactory_DoesNotThrow()

    Ctor_WithNonConcreteEmitterFactory_ThrowsInvalidCast()

    Declaration
    public void Ctor_WithNonConcreteEmitterFactory_ThrowsInvalidCast()
    In this article
    © 2026 Serenity. All Rights Reserved