public void reducing_tf_energy_reduces_by_two_percent_without_buffs() { var tfEnergies = new List <TFEnergy> { new TFEnergyBuilder().With(t => t.Amount, 50).BuildAndSave() }; var player = new PlayerBuilder() .With(p => p.Id, 50) .With(p => p.TFEnergies, tfEnergies) .BuildAndSave(); player.CleanseTFEnergies(new BuffBox()); Assert.That(player.TFEnergies.First().Amount, Is.EqualTo(40)); }
public void reducing_tf_energy_reduces_by_greater_percent_with_buffs() { var tfEnergies = new List <TFEnergy> { new TFEnergyBuilder().With(t => t.Amount, 100).BuildAndSave() }; var player = new PlayerBuilder() .With(p => p.Id, 50) .With(p => p.TFEnergies, tfEnergies) .BuildAndSave(); var buffs = new BuffBox { FromForm_CleanseExtraTFEnergyRemovalPercent = 10 }; player.CleanseTFEnergies(buffs); Assert.That(player.TFEnergies.First().Amount, Is.EqualTo(40)); }