Exemple #1
0
        /// <summary>
        /// Gets a flag that determines whether theories are pre-enumerated. If enabled, then the
        /// discovery system will return a test case for each row of test data; if disabled, then the
        /// discovery system will return a single test case for the theory. If the flag is not present,
        /// returns the default value (<c>true</c>).
        /// </summary>
        public static bool PreEnumerateTheoriesOrDefault(this _ITestFrameworkDiscoveryOptions discoveryOptions)
        {
            Guard.ArgumentNotNull(nameof(discoveryOptions), discoveryOptions);

            return(discoveryOptions.PreEnumerateTheories() ?? true);
        }