コード例 #1
0
        public void GetPerimeter_PositiveTestResult(double rectangleFirstSide, double rectangleSecondSide, double expectedPerimeter)
        {
            FilmRectangle actualFilmRectangle = new FilmRectangle(new List <double> {
                rectangleFirstSide, rectangleSecondSide
            });

            Assert.AreEqual(expectedPerimeter, actualFilmRectangle.GetPerimeter());
        }
コード例 #2
0
        public void GetPerimeter_NewRectangle_GetPerimeter()
        {
            var actual = 52;

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

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