Example #1
0
        public void CreateCoordinate_InputCoordinates_ReturnsCoordinateNotNull()
        {
            var coordinateService = new CoordinateService();
            var coordinate        = coordinateService.Create(0, 0);
            var result            = coordinate.X;

            Assert.Equal(0, result);
        }
Example #2
0
        public void CreateCoordinate_InputCoordinates_ReturnsCoordinateY(int x, int y, int expectedValue)
        {
            var coordinateService = new CoordinateService();
            var coordinate        = coordinateService.Create(x, y);
            var result            = coordinate.X;

            Assert.Equal(expectedValue, result);
        }