public void UnknowFigure() { AreaCalculation.СalculatingAreaFigure("Блабла", 1000); }
public void AddFigureInvalidParams() { AreaCalculation.СalculatingAreaFigure(-1); }
public void СalculatingAreaRightTriangle() { var result = AreaCalculation.СalculatingAreaFigure(new double[] { 3, 4, 5 }); Assert.AreEqual(6, result); }
public void СalculatingAreaCircle() { var result = AreaCalculation.СalculatingAreaFigure(2); Assert.AreEqual(12.566, result); }
public void СalculatingAreaSquare() { var result = AreaCalculation.СalculatingAreaFigure(new double[] { 2, 2 }); Assert.AreEqual(4, 4); }
public void InvalidParams() { AreaCalculation.СalculatingAreaFigure("Circle", -10000); }