public void One_Hp_Generator_Coords_Test() { _map = new Map(); _generateRandom = new GenerateRandomCoordsOneHp(_map); var coord = _generateRandom.GenerateCoords(); var x = coord[0].X; var y = coord[0].Y; Assert.AreEqual(1, coord.Count); Assert.That(x, Is.InRange(0, 9)); Assert.That(y, Is.InRange(0, 9)); }
public void Two_Hp_Generator_Coords_Test() { _map = new Map(); _generateRandom = new GenerateRandomCoordsTwoHp(_map); var coord = _generateRandom.GenerateCoords(); var x1 = coord[0].X; var y1 = coord[0].Y; var x2 = coord[1].X; var y2 = coord[1].Y; Assert.AreEqual(2, coord.Count); Assert.That(x1, Is.InRange(0, 9)); Assert.That(y1, Is.InRange(0, 9)); Assert.That(x2, Is.InRange(0, 9)); Assert.That(y2, Is.InRange(0, 9)); }