logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class GameSettingWizardTests

    EditMode tests for the Game Settings Wizard. Most cases are pure; the integration ones create assets under a temporary folder and delete it again in TearDown, so the suite is safe to re-run.

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

    Constructors

    GameSettingWizardTests()

    Declaration
    public GameSettingWizardTests()

    Methods

    CreateRecommendedSet_OutputFolderOutsideAssets_Fails()

    Declaration
    public void CreateRecommendedSet_OutputFolderOutsideAssets_Fails()

    Create_OutputFolderMissing_CreatesTheFolderAndTheAssets()

    Declaration
    public void Create_OutputFolderMissing_CreatesTheFolderAndTheAssets()

    Create_OutputFolderOutsideAssets_Fails()

    Declaration
    public void Create_OutputFolderOutsideAssets_Fails()

    Create_PopulatesDefinitionFields()

    Declaration
    public void Create_PopulatesDefinitionFields()

    Create_SecondTimeWithSameId_FailsValidation()

    Declaration
    public void Create_SecondTimeWithSameId_FailsValidation()

    DeleteTempFolder()

    Declaration
    public void DeleteTempFolder()

    FindTarget_UnknownType_ReturnsNullWithError()

    Declaration
    public void FindTarget_UnknownType_ReturnsNullWithError()

    OptionProvider_Quality_KeyEqualsLabel_AndNonEmpty()

    Declaration
    public void OptionProvider_Quality_KeyEqualsLabel_AndNonEmpty()

    OptionProvider_Resolution_KeysMatchWidthByHeight()

    Declaration
    public void OptionProvider_Resolution_KeysMatchWidthByHeight()

    PresetLibrary_AllPresets_AreInternallyConsistent()

    Declaration
    public void PresetLibrary_AllPresets_AreInternallyConsistent()

    PresetLibrary_AudioMixerParamPresets_SuggestGroupVolumeNamedParameters()

    Every AudioMixerParam preset's Serenity.GameSettings.Infrastructure.Editor.Builder.GameSettingPreset.SuggestedMixerParam must match the project's real exposed-parameter naming convention — {GROUP}_Volume, e.g. MASTER_Volume, as shipped in Assets/Serenity/Media/SoundMixer/SoundMixerSettings.asset. Regression test for the "Master Volume" preset silently wiring to AMBIENT_Volume instead of MASTER_Volume: a suggested name outside this convention never matches any real exposed parameter, so CreateGameSettingWindow.DrawAudioWiring silently defaulted to whichever parameter sorts first alphabetically.

    Declaration
    public void PresetLibrary_AudioMixerParamPresets_SuggestGroupVolumeNamedParameters()

    PresetLibrary_Recommended_ExcludesCustomBlank()

    Declaration
    public void PresetLibrary_Recommended_ExcludesCustomBlank()

    PresetLibrary_VolumePresets_SuggestTheExactShippedMixerParameterNames()

    Declaration
    public void PresetLibrary_VolumePresets_SuggestTheExactShippedMixerParameterNames()

    PresetToInput_StaticSelectable_KeepsDefaultAndOptions()

    Declaration
    public void PresetToInput_StaticSelectable_KeepsDefaultAndOptions()

    SerializedWrite_ExposedParameter_AppendsKeyValuePair()

    Declaration
    public void SerializedWrite_ExposedParameter_AppendsKeyValuePair()

    SerializedWrite_StringKey_RoundTrips()

    Declaration
    public void SerializedWrite_StringKey_RoundTrips()

    Validate_Int_AcceptsValidInput()

    Declaration
    public void Validate_Int_AcceptsValidInput()

    Validate_Numeric_RejectsDefaultOutOfRange()

    Declaration
    public void Validate_Numeric_RejectsDefaultOutOfRange()

    Validate_OutputFolderMissing_IsAccepted()

    Declaration
    public void Validate_OutputFolderMissing_IsAccepted()

    Validate_RejectsIdWithSpaces()

    Declaration
    public void Validate_RejectsIdWithSpaces()

    Validate_Selectable_RejectsDuplicateKeys()

    Declaration
    public void Validate_Selectable_RejectsDuplicateKeys()

    Validate_Selectable_RejectsEmptyOptions()

    Declaration
    public void Validate_Selectable_RejectsEmptyOptions()

    WiringDescriptor_EveryField_ExistsOnTargetType()

    Declaration
    public void WiringDescriptor_EveryField_ExistsOnTargetType()

    WiringMap_EveryNonMixerDescriptor_HasAMatchingContractRow()

    Every non-mixer wiring target must have a matching row in FoundationReferenceContracts — Get(WiringSystem) now derives its TargetTypeName/FieldName from that row, so a missing one would throw there before this test ever ran; asserted here too so the two tables' relationship stays an explicit, named guarantee.

    Declaration
    public void WiringMap_EveryNonMixerDescriptor_HasAMatchingContractRow()

    WriteKey_None_IsSkipped()

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