public void AreaPropertyCircleTest(double radius, double expectedArea) { //Arrange BaseCircleShape filmCircle = new BaseCircleShape(radius); //Act var actualArea = filmCircle.Area; //Assert Assert.AreEqual(expectedArea, actualArea); }
public void PerimetrPropertyCircleTest(double radius, double expectedPerimeter) { //Arrange BaseCircleShape circle = new BaseCircleShape(radius); //Act var actualPerimetera = circle.Perimeter; //Assert Assert.AreEqual(expectedPerimeter, actualPerimetera); }
public void EqualsCircleMethodTest(double radius, bool expected) { //Arrange BaseCircleShape actualCircle = new BaseCircleShape(radius); BaseCircleShape expectedCircle = new BaseCircleShape(radius); //Act var actual = actualCircle.Equals(expectedCircle); //Assert Assert.AreEqual(expected, actual); }
/// <summary> /// Constructor to cut shape from another. /// </summary> /// <param name="currentShape">Shape's blank.</param> /// <param name="cuttingShape">Shape which Cut out.</param> public FilmCircle(BaseCircleShape currentShape, BaseCircleShape cuttingShape) : base(currentShape, cuttingShape) { }