public void GetArea_Radius_Exception()
 {
     // Arange
     double        Radius         = 0;
     FigureBuilder circleBuilder1 = new CircleBuilder("CircleFigure");
     Figures       circleFigure1  = circleBuilder1.Create(Radius);
     //Act
     var result = circleFigure1.GetArea();
 }
        public void GetArea_Radius_Result()
        {
            // Arange
            FigureBuilder circleBuilder1 = new CircleBuilder("CircleFigure");
            Figures       circleFigure1  = circleBuilder1.Create(3);
            double        expected       = 28.27;
            //Act
            var result = circleFigure1.GetArea();

            // Assert
            Assert.AreEqual(expected, result, 0.01);
        }
        public void Equals1_CircleFigure_True()
        {
            // Arange
            double[]     radius        = { 3 };
            CircleFigure circleFigure2 = new CircleFigure(radius);

            FigureBuilder circleBuilder1 = new CircleBuilder("CircleFigure");
            Figures       circleFigure1  = circleBuilder1.Create(3);
            //Act
            var result = CircleFigure.Equals1(circleFigure1, circleFigure2);

            // Assert
            Assert.IsTrue(result);
        }
        public void CircleFigure_String_String()
        {
            // Arange
            double[]      radius         = { 3 };
            CircleFigure  circleFigure2  = new CircleFigure(radius);
            FigureBuilder circleBuilder1 = new CircleBuilder("CircleFigure");
            Figures       circleFigure1  = circleBuilder1.Create(3);
            string        expected       = "ќкружность с площадью " + circleFigure2.GetArea() + " и периметром " + circleFigure2.GetPerimeter();
            //Act
            var result = circleFigure1.ToString();

            // Assert
            Assert.AreEqual(expected, result);
        }