public void BuildToXYZ() { RollerCoasterMaker game = new RollerCoasterMaker(); float x = Globals.FINSH_AREA_X; float y = Globals.FINSH_AREA_Y; float z = Globals.FINSH_AREA_Z; float withinX = Globals.FINSH_AREA_X_RANGE; float withinY = Globals.FINSH_AREA_Y_RANGE; float withinZ = Globals.FINSH_AREA_Z_RANGE; game.BuildToXYZ(x, y, z, withinX, withinY, withinZ); Assert.IsTrue(game.coaster.Tracks[game.coaster.TrackCount - 1].X >= x - withinX && game.coaster.Tracks[game.coaster.TrackCount - 1].X <= x + withinX && game.coaster.Tracks[game.coaster.TrackCount - 1].Y >= y - withinY && game.coaster.Tracks[game.coaster.TrackCount - 1].Y <= y + withinY && game.coaster.Tracks[game.coaster.TrackCount - 1].Z >= z - withinZ && game.coaster.Tracks[game.coaster.TrackCount - 1].Z <= z + withinZ); }