Пример #1
0
        public void ClearHistory_ShouldHaveNoResultsAfterClearHistory()
        {
            List <EquationCalculation> equations = EquationsToBeStored;
            var calucaltorModel = new CalculatorModel();

            foreach (EquationCalculation data in equations)
            {
                calucaltorModel.CalculateFromText(data.Equation);
            }

            calucaltorModel.ClearHistory();

            Assert.Empty(calucaltorModel.Results);
        }