public void ShouldContainExpectedNumberOfLines()
        {
            //Act
            var result = ExecutionTimeCounter.ResultsToString();

            //Assert
            int expectedLinesPerSection = 7;

            Assert.AreEqual(iterations * expectedLinesPerSection, new Regex(Environment.NewLine).Matches(result).Count);
        }
        public void ShouldContainAllSectionNames()
        {
            //Act
            var result = ExecutionTimeCounter.ResultsToString();

            //Assert
            for (int i = 0; i < 5; i++)
            {
                Assert.IsTrue(result.Contains($"{i}:"));
            }
        }
        public void ShouldContainAllStats()
        {
            //Act
            var result = ExecutionTimeCounter.ResultsToString();

            //Assert
            for (int i = 0; i < 5; i++)
            {
                Assert.AreEqual(iterations, new Regex("Average").Matches(result).Count);
                Assert.AreEqual(iterations, new Regex("Median").Matches(result).Count);
                Assert.AreEqual(iterations, new Regex("Fastest").Matches(result).Count);
                Assert.AreEqual(iterations, new Regex("Slowest").Matches(result).Count);
                Assert.AreEqual(iterations, new Regex("Executions").Matches(result).Count);
            }
        }