Class that creates a timeframe during which the performance of the current process is optimized by reducing the probability that the Garbage Collector runs.
Inheritance: IPerformanceOptimizer
        public void GcLatencyMode_TestValues()
        {
            // Arrange
            var p = new GcPerformanceOptimizer();

            // Act
            var beforeMode = GCSettings.LatencyMode;

            p.EnterOptimizedSection();
            var whileMode = GCSettings.LatencyMode;

            p.LeaveOptimizedSection();
            var afterMode = GCSettings.LatencyMode;

            // Assert
            Assert.AreEqual(afterMode, beforeMode);
            Assert.AreEqual(GCLatencyMode.SustainedLowLatency, whileMode);
        }