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;
}
}
}