logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class SerenityAudioRegistrationValidatorTests

    Tests for Serenity.Global.Infrastructure.Editor.Validation.SerenityAudioRegistrationValidator: an audio clip definition that exists as an asset but is absent from its selectable game-settings registry must be flagged, and the fix API must resolve it. Builds a throwaway registry via ScriptableObject.CreateInstance(string) because UnityGameSettingsDefinition has no assembly definition of its own — see Serenity.Global.Infrastructure.Editor.Validation.SerenityAudioRegistrationValidator's class remarks — and targets it explicitly through the two-registry FixByRegistering overload so the test never touches the project's real Audio_SoundToTrigger asset.

    Inheritance
    object
    SerenityAudioRegistrationValidatorTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.UnityValidation.Tests.Editor
    Assembly: Serenity.UnityValidation.Tests.Editor.dll
    Syntax
    public class SerenityAudioRegistrationValidatorTests

    Constructors

    SerenityAudioRegistrationValidatorTests()

    Declaration
    public SerenityAudioRegistrationValidatorTests()

    Methods

    FixByRegistering_ThenRerun_NoLongerReported_AndSecondFixIsNoOp()

    Declaration
    public void FixByRegistering_ThenRerun_NoLongerReported_AndSecondFixIsNoOp()

    Run_UnregisteredClip_ReportsExactlyOneWarning()

    Declaration
    public void Run_UnregisteredClip_ReportsExactlyOneWarning()

    Run_WithTwoMatchingRegistries_ReportsAmbiguityWarning()

    Declaration
    public void Run_WithTwoMatchingRegistries_ReportsAmbiguityWarning()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

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