logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class CharacterViewModelTests

    Tests for CharacterViewModel, the InterfaceAdapters view-model that extends the Domain CharacterState and exposes presentation-friendly aliases.

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

    Constructors

    CharacterViewModelTests()

    Declaration
    public CharacterViewModelTests()

    Methods

    ApplyDamage_LethalWhileActive_ReducesToZeroAndNotAlive()

    Declaration
    public void ApplyDamage_LethalWhileActive_ReducesToZeroAndNotAlive()

    ApplyDamage_WhileActive_ReducesCurrentHp()

    Declaration
    public void ApplyDamage_WhileActive_ReducesCurrentHp()

    ApplyDamage_WhileSpawning_DoesNothing()

    Declaration
    public void ApplyDamage_WhileSpawning_DoesNothing()

    CharacterId_AliasesId()

    Declaration
    public void CharacterId_AliasesId()

    Ctor_InitializesMaxHpAndCurrentHp()

    Declaration
    public void Ctor_InitializesMaxHpAndCurrentHp()

    Implements_IViewModel()

    Declaration
    public void Implements_IViewModel()

    IsAlive_FullHealth_ReturnsTrue()

    Declaration
    public void IsAlive_FullHealth_ReturnsTrue()

    ToString_ContainsHpAndAliveState()

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