Skip to content

Commit 732a3a3

Browse files
authored
Fixes Test Platform. (#2393)
Also updates to the latest version of TP.Fakes bits so we can catch this in E2E tests.
1 parent 2c683b6 commit 732a3a3

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

scripts/build/TestPlatform.Dependencies.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<JsonNetVersion>9.0.1</JsonNetVersion>
3333
<MoqVersion>4.7.63</MoqVersion>
3434
<TestPlatformExternalsVersion>16.0.0-preview-2148743</TestPlatformExternalsVersion>
35-
<MicrosoftFakesVersion>16.6.3-beta.20169.2</MicrosoftFakesVersion>
35+
<MicrosoftFakesVersion>16.6.2-beta.20208.2</MicrosoftFakesVersion>
3636

3737
<MicrosoftBuildPackageVersion>16.0.461</MicrosoftBuildPackageVersion>
3838
<MicrosoftBuildFrameworkPackageVersion>$(MicrosoftBuildPackageVersion)</MicrosoftBuildFrameworkPackageVersion>

src/Microsoft.TestPlatform.Common/Utilities/FakesUtilities.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ private static bool TryAddFakesDataCollectorSettings(
9090
{
9191
var sourceTFMMap = CreateDictionary(sources, framework);
9292
var fakesSettings = newConfigurator(sourceTFMMap);
93+
// if no fakes, return settings unchanged
94+
if (fakesSettings == null)
95+
{
96+
return false;
97+
}
98+
9399
XmlRunSettingsUtilities.InsertDataCollectorsNode(runSettings.CreateNavigator(), fakesSettings);
94100
return true;
95101
}

0 commit comments

Comments
 (0)