logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Namespace Serenity.UnitySoundMixer.Tests.Infrastructure

    Classes

    UnitySoundMixerServiceFactoryTests

    Tests for Serenity.SoundMixer.Infrastructure.Services.UnitySoundMixerServiceFactory.
    Validates the factory contract: it creates a GameObject-backed Serenity.SoundMixer.Infrastructure.Services.UnitySoundMixerService, names it, and wires the event dispatcher. The settings' AudioMixer is null (a real mixer asset cannot be authored in tests); the service's log dependency is unset at construction so the null-mixer path is a silent no-op, keeping the factory test clean.

    UnitySoundMixerServiceTests

    PlayMode/EditMode tests for Serenity.SoundMixer.Infrastructure.Services.UnitySoundMixerService.
    The service is a MonoBehaviour driving a real UnityEngine.Audio.AudioMixer. A real .mixer asset cannot be authored or constructed here, so these tests exercise the parts that do NOT require a usable mixer: parameter/dependency wiring, the null/unusable-mixer guard branches (which short- circuit before touching the mixer), and the event-dispatcher subscription wiring.

    In this article
    © 2026 Serenity. All Rights Reserved