示例#1
0
        public void GetArea_PositiveTestResult(double rectangleFirstSide, double rectangleSecondSide, double expectedArea)
        {
            FilmRectangle actualFilmRectangle = new FilmRectangle(new List <double> {
                rectangleFirstSide, rectangleSecondSide
            });

            Assert.AreEqual(expectedArea, actualFilmRectangle.GetArea());
        }
示例#2
0
        public void GetArea_NewRectangle_GetArea()
        {
            var actual = 168;

            // act
            var expected = new FilmRectangle(new List <double> {
                12, 14
            });

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