Class MagazineStateBehaviorTests
Additional behavioral tests for MagazineState not covered by MagazineStateTests.
Inherited Members
Namespace: Serenity.GameWeapon.Tests.Domain
Assembly: Tests.dll
Syntax
public class MagazineStateBehaviorTests
Constructors
MagazineStateBehaviorTests()
Declaration
public MagazineStateBehaviorTests()
Methods
ConsumeRound_RepeatedlyToZero_ThenFalse()
Declaration
public void ConsumeRound_RepeatedlyToZero_ThenFalse()
Ctor_CurrentAmmoEqualsMax_IsFull()
Declaration
public void Ctor_CurrentAmmoEqualsMax_IsFull()
Ctor_NegativeCurrentAmmo_DefaultsToMax()
Declaration
public void Ctor_NegativeCurrentAmmo_DefaultsToMax()
Ctor_ZeroCurrentAmmo_StaysZero()
Declaration
public void Ctor_ZeroCurrentAmmo_StaysZero()
IsFull_AfterReloadToMax_True()
Declaration
public void IsFull_AfterReloadToMax_True()
ReloadAmount_FromEmpty_AddsExact()
Declaration
public void ReloadAmount_FromEmpty_AddsExact()
ReloadAmount_NegativeAmount_ReducesAmmo()
Declaration
public void ReloadAmount_NegativeAmount_ReducesAmmo()
ReloadAmount_WhenFull_StaysFull()
Declaration
public void ReloadAmount_WhenFull_StaysFull()
ReloadAmount_Zero_NoChange()
Declaration
public void ReloadAmount_Zero_NoChange()
Reload_FromEmpty_RestoresFull()
Declaration
public void Reload_FromEmpty_RestoresFull()