logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MenuInstantiationModeTests

    Tests for MenuInstantiationMode.
    These lock the value contract that keeps PR2 backward-compatible: the default (value 0) must be PreloadOnStartup so existing serialized menu assets — which store no value for this field — deserialize to the current eager-construction behavior.

    Inheritance
    object
    MenuInstantiationModeTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Menu.Tests.Domain
    Assembly: Tests.dll
    Syntax
    public class MenuInstantiationModeTests

    Constructors

    MenuInstantiationModeTests()

    Declaration
    public MenuInstantiationModeTests()

    Methods

    Default_IsPreloadOnStartup()

    Declaration
    public void Default_IsPreloadOnStartup()

    LazyOnFirstOpen_IsOne()

    Declaration
    public void LazyOnFirstOpen_IsOne()

    PreloadOnStartup_IsZero_ToPreserveExistingSerializedAssets()

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