Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void ParseShotCoordinate_IncorrectData_ThrowException(string text)
        {
            CoordinatesParser parser = Create();

            Assert.Throws <DataValidationException>(() => parser.ParseCoordinate(text));
        }