Example #1
0
        public void TestGetTriangleByCoords()
        {
            var controller = new TrianglesController();
            var result     = controller.GetTriangleByCoords(60, 50, 50, 50, 60, 60);

            Assert.AreEqual(result, "F12");
        }
Example #2
0
        public void TestGetTriangleByCoordsOdd()
        {
            var controller = new TrianglesController();
            var result     = controller.GetTriangleByCoords(20, 40, 20, 30, 30, 40);

            Assert.AreEqual(result, "D5");
        }