@@ -268,6 +268,7 @@ public void DiscoverTestsShouldCollectMetrics()
268
268
<MaxCpuCount>2</MaxCpuCount>
269
269
<TargetPlatform>x86</TargetPlatform>
270
270
<TargetFrameworkVersion>Framework35</TargetFrameworkVersion>
271
+ <DisableAppDomain>True</DisableAppDomain>
271
272
</RunConfiguration>
272
273
<MSPhoneTest>
273
274
<TargetDevice>169.254.193.190</TargetDevice>
@@ -296,15 +297,15 @@ public void DiscoverTestsShouldCollectMetrics()
296
297
this . testRequestManager . DiscoverTests ( payload , mockDiscoveryRegistrar . Object , mockProtocolConfig ) ;
297
298
298
299
// Verify.
299
- object targetDevice ;
300
- object maxcount ;
301
- object targetPlatform ;
300
+ object targetDevice , maxcount , targetPlatform , disableAppDomain ;
302
301
Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . TargetDevice , out targetDevice ) ) ;
303
302
Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . MaxCPUcount , out maxcount ) ) ;
304
303
Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . TargetPlatform , out targetPlatform ) ) ;
304
+ Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . DisableAppDomain , out disableAppDomain ) ) ;
305
305
Assert . AreEqual ( "Other" , targetDevice ) ;
306
306
Assert . AreEqual ( 2 , maxcount ) ;
307
307
Assert . AreEqual ( "X86" , targetPlatform . ToString ( ) ) ;
308
+ Assert . AreEqual ( true , disableAppDomain ) ;
308
309
}
309
310
310
311
[ TestMethod ]
@@ -1062,6 +1063,7 @@ public void RunTestsShouldCollectMetrics()
1062
1063
<MaxCpuCount>2</MaxCpuCount>
1063
1064
<TargetPlatform>x86</TargetPlatform>
1064
1065
<TargetFrameworkVersion>Framework35</TargetFrameworkVersion>
1066
+ <DisableAppDomain>True</DisableAppDomain>
1065
1067
</RunConfiguration>
1066
1068
<MSPhoneTest>
1067
1069
<TargetDevice>169.254.193.190</TargetDevice>
@@ -1089,16 +1091,15 @@ public void RunTestsShouldCollectMetrics()
1089
1091
this . testRequestManager . RunTests ( payload , new Mock < ITestHostLauncher > ( ) . Object , new Mock < ITestRunEventsRegistrar > ( ) . Object , mockProtocolConfig ) ;
1090
1092
1091
1093
// Verify
1092
- // Verify.
1093
- object targetDevice ;
1094
- object maxcount ;
1095
- object targetPlatform ;
1094
+ object targetDevice , maxcount , targetPlatform , disableAppDomain ;
1096
1095
Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . TargetDevice , out targetDevice ) ) ;
1097
1096
Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . MaxCPUcount , out maxcount ) ) ;
1098
1097
Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . TargetPlatform , out targetPlatform ) ) ;
1098
+ Assert . IsTrue ( actualRequestData . MetricsCollection . Metrics . TryGetValue ( TelemetryDataConstants . DisableAppDomain , out disableAppDomain ) ) ;
1099
1099
Assert . AreEqual ( "Other" , targetDevice ) ;
1100
1100
Assert . AreEqual ( 2 , maxcount ) ;
1101
1101
Assert . AreEqual ( "X86" , targetPlatform . ToString ( ) ) ;
1102
+ Assert . AreEqual ( true , disableAppDomain ) ;
1102
1103
}
1103
1104
1104
1105
[ TestMethod ]
0 commit comments