using Domain; using NUnit.Framework; namespace Tests { public class ModelTests { [Test] public void OneIteration_UpdatesGrowPercentage() { Model sut = new(5, 5); for (int i = 0; i < 5; i++) { sut.AddScore(); } Assert.AreEqual(1f / 5f, sut.GrowPercentage); } [Test] public void AllIterations_GrowCompleted() { Model sut = new(5, 5); for (int i = 0; i < 5 * 5; i++) { sut.AddScore(); } Assert.AreEqual(1f, sut.GrowPercentage); } [Test] public void MoreIterations_ResetsGrowPercentage() { Model sut = new(5, 5); for (int i = 0; i < 6 * 5; i++) { sut.AddScore(); } Assert.AreEqual(1f / 5f, sut.GrowPercentage); } } }