示例#1
0
        public void TriangleIsRight()
        {
            //arrange
            AreaOfShapes.Shapes.Triangle triangle = new AreaOfShapes.Shapes.Triangle(3, 4, 5);

            //act
            bool isRight = triangle.IsRightTriangle();

            //assert
            Assert.IsTrue(isRight);
        }
示例#2
0
        public void TriangleAreaWIthValues()
        {
            //arrange
            AreaOfShapes.Shapes.Triangle triangle = new AreaOfShapes.Shapes.Triangle(3, 4, 5);

            //act
            var area = triangle.Area;

            //assert
            Assert.AreEqual(6, area);
        }