public void ToCartesianCoordinateSystem_ReturnsCorrectValue(int centerX, int centerY, double radius, double angle, int expectedX, int expectedY) { var expectedLocation = new Point(expectedX, expectedY); var center = new Point(centerX, centerY); var actualValue = ExMath.ToCartesianCoordinateSystem(radius, angle, center); actualValue.Should().Be(expectedLocation); }
public void RoundCoordinate_RoundsFromCenter(double value, int centerCoordinate, int expectedValue) { var actualValue = ExMath.RoundCoordinate(value, centerCoordinate); actualValue.Should().Be(expectedValue); }