public void GetPerimeter_PositiveTestResult(double rectangleFirstSide, double rectangleSecondSide, double expectedPerimeter) { FilmRectangle actualFilmRectangle = new FilmRectangle(new List <double> { rectangleFirstSide, rectangleSecondSide }); Assert.AreEqual(expectedPerimeter, actualFilmRectangle.GetPerimeter()); }
public void GetPerimeter_NewRectangle_GetPerimeter() { var actual = 52; // act var expected = new FilmRectangle(new List <double> { 12, 14 }); // assert; Assert.Equal(expected.GetPerimeter(), actual); }