public void GetArea_PositiveTestResult(double triangleFirstSide, double triangleSecondSide, double triangleThirdSide, double expectedArea)
        {
            FilmTriangle actualFilmTriangle = new FilmTriangle(new List <double> {
                triangleFirstSide, triangleSecondSide, triangleThirdSide
            });

            Assert.AreEqual(expectedArea, actualFilmTriangle.GetArea());
        }
예제 #2
0
        public void GetArea_NewRectangle_GetArea()
        {
            var actual = 3.799671038392666;

            // act
            var expected = new FilmTriangle(new List <double> {
                2, 4, 5
            });

            // assert;
            Assert.Equal(expected.GetArea(), actual);
        }