public void ReduceScoreErrorCheckTest() { //点数がマイナスにならないかどうかのテスト lcon.AddLife(LifePoint); for (int i = 0; i < 100; i++) { lcon.ReduceLife(LifePoint); } Assert.That(0f, Is.EqualTo(lcon.GetLife())); }
public float ReduceLife(float LifePoint) { return(lcon.ReduceLife(LifePoint));; }