public void CircleSquareWithZeroValue() { //arrange ShapeSquareFactory factory = new ShapeSquareFactory(); //act var square = factory.Circle(0); //assert Assert.AreEqual(0, square.Square()); }
public void CircleSquareWithCorrectValue() { //arrange ShapeSquareFactory factory = new ShapeSquareFactory(); //act var correctArea = Math.PI * Math.Pow(10, 2); var square = factory.Circle(10); //assert Assert.AreEqual(correctArea, square.Square()); }