public void Read_InvalidData_ThrowInvalidDataFotParametersException(string dataLine)
        {
            // arrange
            var data = new List <string> {
                dataLine
            };
            var fakeReader = new FakeReader(data);

            // act and assert
            Assert.Catch <InvalidDataFotParametersException>(() =>
            {
                fakeReader.Read();
            });
        }
        public void Read_CorrectValuesDataAndCountValuesNoEquals3_ThrowInvalidDataFotParametersException(string dataLine1, string dataLine2, string dataLine3)
        {
            // arrange
            var data = new List <string> {
                dataLine1, dataLine2, dataLine3
            };
            var fakeReader = new FakeReader(data);

            // act and assert
            Assert.Catch <InvalidDataFotParametersException>(() =>
            {
                fakeReader.Read();
            });
        }
        public void Read_CorrectData_DoesNotThrowCorrectParameters(string dataLine, double a, double b, double c)
        {
            // arrange
            var data = new List <string> {
                dataLine
            };
            var fakeReader = new FakeReader(data);

            // act
            var paramsEquation = fakeReader.Read().First();

            // assert
            Assert.AreEqual(a, paramsEquation.A);
            Assert.AreEqual(b, paramsEquation.B);
            Assert.AreEqual(c, paramsEquation.C);
        }