logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class MenuDirectionTests

    Tests for Serenity.Menu.Domain.Enums.MenuDirection. These lock the value contract that keeps the horizontal feature backward-compatible: the default (value 0) must be Serenity.Menu.Domain.Enums.MenuDirection.VERTICAL so existing serialized assets — which store no value — deserialize to the historical layout.

    Inheritance
    object
    MenuDirectionTests
    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 MenuDirectionTests

    Constructors

    MenuDirectionTests()

    Declaration
    public MenuDirectionTests()

    Methods

    DeclaredNames_AreExactlyVerticalAndHorizontal()

    Declaration
    public void DeclaredNames_AreExactlyVerticalAndHorizontal()

    Default_IsVertical()

    Declaration
    public void Default_IsVertical()

    Horizontal_IsOne()

    Declaration
    public void Horizontal_IsOne()

    Parse_VerticalName_RoundTripsToValue()

    Declaration
    public void Parse_VerticalName_RoundTripsToValue()

    Vertical_IsZero_ToPreserveExistingSerializedAssets()

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