Class CharacterViewModelTests
Tests for Serenity.Character.InterfaceAdapters.ViewModels.CharacterViewModel, the InterfaceAdapters view-model that extends the Domain CharacterState and exposes presentation-friendly aliases.
Inherited Members
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()