示例#1
0
 public void UnknowFigure()
 {
     AreaCalculation.СalculatingAreaFigure("Блабла", 1000);
 }
示例#2
0
 public void AddFigureInvalidParams()
 {
     AreaCalculation.СalculatingAreaFigure(-1);
 }
示例#3
0
        public void СalculatingAreaRightTriangle()
        {
            var result = AreaCalculation.СalculatingAreaFigure(new double[] { 3, 4, 5 });

            Assert.AreEqual(6, result);
        }
示例#4
0
        public void СalculatingAreaCircle()
        {
            var result = AreaCalculation.СalculatingAreaFigure(2);

            Assert.AreEqual(12.566, result);
        }
示例#5
0
        public void СalculatingAreaSquare()
        {
            var result = AreaCalculation.СalculatingAreaFigure(new double[] { 2, 2 });

            Assert.AreEqual(4, 4);
        }
示例#6
0
 public void InvalidParams()
 {
     AreaCalculation.СalculatingAreaFigure("Circle", -10000);
 }