public void AliveNewGame() { var player = new PlayerStats(); PlayerStats.death = true; player.Start(); Assert.False(PlayerStats.death); }
public void DeathWhenBigDamage() { var player = new PlayerStats(); player.Start(); PlayerStats.curHP = PlayerStats.curHP - 10000; player.Update(); Assert.True(PlayerStats.death); }
public void SharpincreaseWhenStatUp() { var player = new PlayerStats(); var stats = new WindowStats(); int oldsharp = PlayerStats.sharpness; player.Start(); PlayerStats.statspoints = 1; stats.upsharp(); Assert.Greater(PlayerStats.sharpness, oldsharp); }
public void VitStatIncreaseTestWhenStatUp() { var player = new PlayerStats(); var stats = new WindowStats(); int oldvit = PlayerStats.vitality; player.Start(); PlayerStats.statspoints = 1; stats.upvit(); Assert.Greater(PlayerStats.vitality, oldvit); }
public void DefStatIncreaseWhenStatUp() { var player = new PlayerStats(); var stats = new WindowStats(); int olddef = PlayerStats.defense; player.Start(); PlayerStats.statspoints = 1; stats.updef(); Assert.Greater(PlayerStats.defense, olddef); }
public void DMGincreaseWhenStatUp() { var player = new PlayerStats(); var stats = new WindowStats(); player.Start(); float olddmg = PlayerStats.maxDMG; PlayerStats.statspoints = 1; stats.upsharp(); Assert.Greater(PlayerStats.HP, olddmg); }
public void DEFincreaseWhenStatUp() { var player = new PlayerStats(); var stats = new WindowStats(); player.Start(); float olddef = PlayerStats.DEF; PlayerStats.statspoints = 1; stats.updef(); Assert.Greater(PlayerStats.HP, olddef); }
public void HPincreaseWhenStatUp() { var player = new PlayerStats(); var stats = new WindowStats(); player.Start(); float oldhp = PlayerStats.HP; PlayerStats.statspoints = 1; stats.upvit(); Assert.Greater(PlayerStats.HP, oldhp); }