public void ParseShotCoordinate_CorrectData_ReturnResult(string text, int x, int y) { CoordinatesParser parser = Create(); ShotDomainModel result = parser.ParseCoordinate(text); Assert.NotNull(result); Assert.Equal(x, result.Point.X); Assert.Equal(y, result.Point.Y); }
public void ParseShotCoordinate_IncorrectData_ThrowException(string text) { CoordinatesParser parser = Create(); Assert.Throws <DataValidationException>(() => parser.ParseCoordinate(text)); }