logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuPresenterTests

    Tests for Serenity.Menu.InterfaceAdapters.Presenters.UnityMenuPresenter: each presenter call must resolve the view model by id and delegate to it, and missing ids must throw. The presenter is driven with real Serenity.Menu.InterfaceAdapters.ViewModels.UnityMenuViewModel instances (the presenter casts to that concrete type) and a null player-input service, which the exercised methods never touch.

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

    Constructors

    UnityMenuPresenterTests()

    Declaration
    public UnityMenuPresenterTests()

    Methods

    Cancel_DelegatesToViewModel()

    Declaration
    public void Cancel_DelegatesToViewModel()

    Cancel_UnknownMenuId_Throws()

    Declaration
    public void Cancel_UnknownMenuId_Throws()

    ChangeOptionValue_DelegatesNewValueToViewModel()

    Declaration
    public void ChangeOptionValue_DelegatesNewValueToViewModel()

    SelectOption_DelegatesIndexToViewModel()

    Declaration
    public void SelectOption_DelegatesIndexToViewModel()

    SelectOption_UnknownMenuId_Throws()

    Declaration
    public void SelectOption_UnknownMenuId_Throws()

    SubmitOption_DelegatesToViewModel()

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