StatLight.Core.Configuration.StatLightConfigurationFactory.SetupUnitTestProviderType C# (CSharp) Method

SetupUnitTestProviderType() private static method

private static SetupUnitTestProviderType ( TestFileCollection testFileCollection, UnitTestProviderType &unitTestProviderType, MicrosoftTestingFrameworkVersion &microsoftTestingFrameworkVersion ) : void
testFileCollection StatLight.Core.WebServer.XapInspection.TestFileCollection
unitTestProviderType UnitTestProviderType
microsoftTestingFrameworkVersion MicrosoftTestingFrameworkVersion
return void
        private static void SetupUnitTestProviderType(TestFileCollection testFileCollection, ref UnitTestProviderType unitTestProviderType, ref MicrosoftTestingFrameworkVersion? microsoftTestingFrameworkVersion)
        {
            if (unitTestProviderType == UnitTestProviderType.Undefined || microsoftTestingFrameworkVersion == null)
            {
                //TODO: Print message telling the user what the type is - and if they give it
                // we don't have to "reflect" on the xap to determine the test provider type.

                if (unitTestProviderType == UnitTestProviderType.Undefined)
                {
                    unitTestProviderType = testFileCollection.UnitTestProvider;
                }

                if (
                    (testFileCollection.UnitTestProvider == UnitTestProviderType.MSTest ||
                     unitTestProviderType == UnitTestProviderType.MSTest ||
                     unitTestProviderType == UnitTestProviderType.MSTestWithCustomProvider)
                    && microsoftTestingFrameworkVersion == null)
                {
                    microsoftTestingFrameworkVersion = testFileCollection.MSTestVersion;
                }
            }
        }