public void TryingSetFieldOnWrongCoordinatesShouldThrowException() { _game = new GameClassForTest(_pathToCorrectMap); var map = _game.GetMap(); map[new Coordinates(-1, 0)] = FieldTypes.Player; }
public void GetValueFromWrongCoordinatesShouldReturnCorrectValue() { _game = new GameClassForTest(_pathToCorrectMap); var map = _game.GetMap(); var actual = map[new Coordinates(map.Params.MapSize["height"], map.Params.MapSize["width"])]; Assert.AreEqual(FieldTypes.BeyondMap, actual); }