コード例 #1
0
        public void GetCellLocation_of_rowF_and_column12()
        {
            //Arrange
            var triangle = new TriangleService();
            List <Coordinate> coordinates = new List <Coordinate> {
                new Coordinate {
                    X = 50, Y = 50
                },
                new Coordinate {
                    X = 60, Y = 50
                },
                new Coordinate {
                    X = 60, Y = 60
                },
            };

            //Act
            var result = triangle.GetTriangleLocation(coordinates);

            //Assert
            Assert.AreEqual(result.Row, 'F');
            Assert.AreEqual(result.Column, 12);
        }