public void FormingArray_StringWithLetter_ThrowsWrongInputException()
        {
            //arrange
            string str = "1,5, 5.a, 8";

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            //assert.Failed()
        }
        public void FormingArray_AllSixElementsInStringAreNegativeIntegers_ReturnsSameElements()
        {
            //arrange
            string str = "-89, -23, -898, -78, -88, -89";

            double[] expected = { -89, -23, -898, -78, -88, -89 };

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }
        public void FormingArray_StringIsEmpty_ReturnsEmptyArray()
        {
            //arrange
            string str = "";

            double[] expected = { };

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }
        public void FormingArray_AllFiveElementsInStringArePositiveIntegers_ReturnsSameElements()
        {
            //arrange
            string str = "999, 19865, 23248, 231, 8952";

            double[] expected = { 999, 19865, 23248, 231, 8952 };

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }
        public void FormingArray_OneInStringElementIsNegativeOtherIsPositive_ReturnsSameElements()
        {
            //arrange
            string str = "-6.75, 23";

            double[] expected = { -6.75, 23 };

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }
        public void FormingArray_OneElemenInStringIsNegativ_ReturnsSameElement()
        {
            //arrange
            string str = "-1";

            double[] expected = { -1 };

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }
        public void FormingArray_AllThreeElementsArePositiveInString_ReturnsSameElements()
        {
            //arrange
            string str = "1.2, 2, 3.5";

            double[] expected = { 1.2, 2, 3.5 };

            //act
            WorkArray workArray = new WorkArray();

            double[] actual = workArray.FormingArray(str);

            //assert
            CollectionAssert.AreEqual(expected, actual);
        }