public void GetCoordinatesTest_InvalidRow() { var result = _controller.GetCoordinates("Z", 4); Assert.IsInstanceOfType(result.Result, typeof(BadRequestObjectResult)); Assert.AreEqual("Invalid row value. Must be 'A-F'", ((BadRequestObjectResult)result.Result).Value); }
public void TestGetTriangleCoordinatesByRowAndColumnEven() { var controller = new TrianglesController(); var result = controller.GetCoordinates("D", 6); Assert.AreEqual(result.V1x, 30); Assert.AreEqual(result.V1y, 30); Assert.AreEqual(result.V2x, 20); Assert.AreEqual(result.V2y, 30); Assert.AreEqual(result.V3x, 30); Assert.AreEqual(result.V3y, 40); }