public void TestEquilateralTriangleArea() { var shape = FactoryShape.Create(ShapeType.EquilateralTriangle, 5); Assert.AreEqual(shape.Area, 10.83); }
public void TestCircleArea() { var shape = FactoryShape.Create(ShapeType.Circle, 5); Assert.AreEqual(shape.Area, 78.54); }
public void TestSquareArea() { var shape = FactoryShape.Create(ShapeType.Square, 5); Assert.AreEqual(shape.Area, 25); }
public void TestEquilateralTriangleType() { var shape = FactoryShape.Create(ShapeType.EquilateralTriangle, 5); Assert.IsInstanceOfType(shape, typeof(EquilateralTriangle)); }
public void TestCircleType() { var shape = FactoryShape.Create(ShapeType.Circle, 5); Assert.IsInstanceOfType(shape, typeof(Circle)); }
public void TestSquareType() { var shape = FactoryShape.Create(ShapeType.Square, 5); Assert.IsInstanceOfType(shape, typeof(Square)); }