コード例 #1
0
        public void GetArea_PositiveTestResult(double squareSide, double expectedArea)
        {
            FilmSquare actualFilmSquare = new FilmSquare(new List <double> {
                squareSide
            });

            Assert.AreEqual(expectedArea, actualFilmSquare.GetArea());
        }
コード例 #2
0
        public void GetArea_NewRectangle_GetArea()
        {
            var actual = 144;

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

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