public void TestSetLastNBeforeMMatrixGetStepsToLastNSpawnBeforeMSpawn() { SpawnFutureRng future = new SpawnFutureRng(); future.SetLastNBeforeMMatrix(GetSimpleMatrix()); Assert.AreEqual(5, future.GetStepsToLastNSpawnBeforeMSpawn(1, 1)); Assert.AreEqual(9, future.GetStepsToLastNSpawnBeforeMSpawn(2, 2)); }
private void UpdateDirectionsData() { tbAppear1.Text = FormUtils.ConvertDirectionsToText( _futureRng.GetSpawnDirectionsAtIndex(0).Directions); tbAppear2.Text = FormUtils.ConvertDirectionsToText( _futureRng.GetSpawnDirectionsAtIndex(1).Directions); tbAppear12.Text = ConvertNBeforeMDirectionToText( _futureRng.GetStepsToLastNSpawnBeforeMSpawn(0, 1)); }
public void TestGetStepsToLastNSpawnBeforeMSpawn_ArgumentOutOfBounds() { SpawnFutureRng future = new SpawnFutureRng(); Assert.ThrowsException <ArgumentOutOfRangeException>( delegate { future.GetStepsToLastNSpawnBeforeMSpawn(1, 1); }); }