﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BigNumbersTests
{
    public class TestCaseManager
    {
        List<TestCase> Cases;

        public TestCaseManager()
        {
            Cases = new List<TestCase>();
        }

        public void Add(TestCase c)
        {
            Cases.Add(c);
        }

        public void Run()
        {
            foreach (var c in Cases)
                c.HasRun = false;
            foreach (var c in Cases)
                c.Run();
        }

        public void DisplayResults()
        {
            foreach (var c in Cases)
            {
                Console.WriteLine(c.ToString());
            }
            Console.WriteLine();
        }
    }
}
