logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMusicPlayerGatewayTests

    Tests for UnityMusicPlayerGateway, which routes music player requests to the registered IMusicPlayerService matching the input's service id. A spy service (MusicPlayerServiceTestDouble) asserts delegation (and the exact arguments forwarded) without any audio engine or scene.

    Inheritance
    object
    UnityMusicPlayerGatewayTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityMusicPlayer.Tests.InterfaceAdapters
    Assembly: Tests.dll
    Syntax
    public class UnityMusicPlayerGatewayTests

    Constructors

    UnityMusicPlayerGatewayTests()

    Declaration
    public UnityMusicPlayerGatewayTests()

    Methods

    Gateway_ImplementsIMusicPlayerGateway()

    Declaration
    public void Gateway_ImplementsIMusicPlayerGateway()

    PauseSong_RoutesToServiceMatchingServiceId()

    Declaration
    public void PauseSong_RoutesToServiceMatchingServiceId()

    PauseSong_UnknownServiceId_Throws()

    Declaration
    public void PauseSong_UnknownServiceId_Throws()

    PlayNextSong_RoutesToService()

    Declaration
    public void PlayNextSong_RoutesToService()

    PlayPreviousSong_RoutesToService()

    Declaration
    public void PlayPreviousSong_RoutesToService()

    PlaySongById_ForwardsAllArguments()

    Declaration
    public void PlaySongById_ForwardsAllArguments()

    PlaySong_ForwardsTransitionTypeAndDuration()

    Declaration
    public void PlaySong_ForwardsTransitionTypeAndDuration()

    PlaySong_UnknownServiceId_Throws()

    Declaration
    public void PlaySong_UnknownServiceId_Throws()

    ResumeSong_RoutesToService()

    Declaration
    public void ResumeSong_RoutesToService()

    Routing_WithMultipleServices_SelectsCorrectOne()

    Declaration
    public void Routing_WithMultipleServices_SelectsCorrectOne()

    StopSong_RoutesToService()

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