public void SmallTests(int alphabet, int numerator, int denominator, bool detectEqual, string[] expectedWords, Type detectorType)
        {
            var e        = new RationalNumber(numerator, denominator);
            var detector = GetDetector(detectorType, detectEqual, e);
            var result   = AllWordsGenerator.Generate(detector, alphabet);

            Assert.That(result, Is.EquivalentTo(expectedWords));
        }
        public void LargeTests(int alphabet, int numerator, int denominator, bool detectEqual, string fileName, Type detectorType)
        {
            var resultPath      = Path.Combine(TestContext.CurrentContext.TestDirectory, "Files", fileName);
            var expectedStrings = File.ReadAllLines(resultPath);
            var e        = new RationalNumber(numerator, denominator);
            var detector = GetDetector(detectorType, detectEqual, e);
            var sw       = Stopwatch.StartNew();
            var result   = AllWordsGenerator.Generate(detector, alphabet);

            sw.Stop();
            Assert.That(result, Is.EquivalentTo(expectedStrings));
            Console.WriteLine("Time: {0} ms", sw.ElapsedMilliseconds);
        }