Пример #1
0
 public void UnknownShape_15_12()
 {
     //arrange
     double a = 15;
     double b = 12;
     //act
     UnknownFigure shape  = new UnknownFigure();
     double        actual = shape.AreaObject(a, b);
 }
Пример #2
0
        public void UnknownShape_15_707returned()
        {
            //arrange
            double a        = 15;
            double expected = 707;
            //act
            UnknownFigure shape  = new UnknownFigure();
            double        actual = shape.AreaObject(a);

            //assert
            Assert.AreEqual(expected, Math.Round(actual));
        }
Пример #3
0
        public void UnknownShape_3_4_5_6returned()
        {
            //arrange
            double a        = 3;
            double b        = 4;
            double c        = 5;
            double expected = 6;
            //act
            UnknownFigure shape  = new UnknownFigure();
            double        actual = shape.AreaObject(a, b, c);

            //assert
            Assert.AreEqual(expected, Math.Round(actual));
        }