Skip to content

Avoid IVT between test framework and adapter #5628

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ internal AssemblyEnumerationResult EnumerateAssembly(string assemblyFileName)

// Set the test ID generation strategy for DataRowAttribute and DynamicDataAttribute so we can improve display name without
// causing a breaking change.
#pragma warning disable CS0618 // Type or member is obsolete
DataRowAttribute.TestIdGenerationStrategy = testIdGenerationStrategy;
DynamicDataAttribute.TestIdGenerationStrategy = testIdGenerationStrategy;
#pragma warning restore CS0618 // Type or member is obsolete

TestDataSourceUnfoldingStrategy dataSourcesUnfoldingStrategy = ReflectHelper.GetTestDataSourceOptions(assembly)?.UnfoldingStrategy switch
{
Expand Down Expand Up @@ -388,7 +390,9 @@ private static bool TryUnfoldITestDataSources(UnitTestElement test, DiscoveryTes
}
}

#pragma warning disable CS0618 // Type or member is obsolete
private static bool TryUnfoldITestDataSource(ITestDataSource dataSource, TestDataSourceUnfoldingStrategy dataSourcesUnfoldingStrategy, UnitTestElement test, ReflectionTestMethodInfo methodInfo, List<UnitTestElement> tests)
#pragma warning restore CS0618 // Type or member is obsolete
{
var unfoldingCapability = dataSource as ITestDataSourceUnfoldingCapability;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ internal TestAssemblySettings GetSettings(string source)

// Set the test ID generation strategy for DataRowAttribute and DynamicDataAttribute so we can improve display name without
// causing a breaking change.
#pragma warning disable CS0618 // Type or member is obsolete
DataRowAttribute.TestIdGenerationStrategy = testIdGenerationStrategy;
DynamicDataAttribute.TestIdGenerationStrategy = testIdGenerationStrategy;
#pragma warning restore CS0618 // Type or member is obsolete

ParallelizeAttribute? parallelizeAttribute = ReflectHelper.GetParallelizeAttribute(testAssembly);

Expand Down
8 changes: 5 additions & 3 deletions src/Adapter/MSTest.TestAdapter/Execution/TestMethodRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
/// <returns>The test results.</returns>
internal async Task<TestResult[]> ExecuteAsync(string initializationLogs, string initializationErrorLogs, string initializationTrace, string initializationTestContextMessages)
{
_testContext.Context.TestRunCount++;

Check failure on line 66 in src/Adapter/MSTest.TestAdapter/Execution/TestMethodRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Release)

src/Adapter/MSTest.TestAdapter/Execution/TestMethodRunner.cs#L66

src/Adapter/MSTest.TestAdapter/Execution/TestMethodRunner.cs(66,9): error CS0200: (NETCORE_ENGINEERING_TELEMETRY=Build) Property or indexer 'TestContext.TestRunCount' cannot be assigned to -- it is read only
bool isSTATestClass = AttributeComparer.IsDerived<STATestClassAttribute>(_testMethodInfo.Parent.ClassAttribute);
bool isSTATestMethod = AttributeComparer.IsDerived<STATestMethodAttribute>(_testMethodInfo.Executor);
bool isSTARequested = isSTATestClass || isSTATestMethod;
Expand Down Expand Up @@ -174,7 +174,7 @@
if (_test.TestDataSourceIgnoreMessage is not null)
{
_testContext.SetOutcome(UTF.UnitTestOutcome.Ignored);
return [TestResult.CreateIgnoredResult(_test.TestDataSourceIgnoreMessage)];
return [TestResultHelpers.CreateIgnoredResult(_test.TestDataSourceIgnoreMessage)];
}

object?[]? data = DataSerializationHelper.Deserialize(_test.SerializedData);
Expand Down Expand Up @@ -272,7 +272,7 @@
{
if (testDataSource is ITestDataSourceIgnoreCapability { IgnoreMessage: { } ignoreMessage })
{
results.Add(TestResult.CreateIgnoredResult(ignoreMessage));
results.Add(TestResultHelpers.CreateIgnoredResult(ignoreMessage));
continue;
}

Expand Down Expand Up @@ -396,19 +396,21 @@
data = tupleExpandedToArray;
}

#pragma warning disable CS0618 // Type or member is obsolete
displayName = testDataSource != null
? displayNameFromTestDataRow
?? testDataSource.GetDisplayName(new ReflectionTestMethodInfo(_testMethodInfo.MethodInfo, _test.DisplayName), data)
?? displayName
: displayNameFromTestDataRow ?? displayName;
#pragma warning restore CS0618 // Type or member is obsolete

var stopwatch = Stopwatch.StartNew();
_testMethodInfo.SetArguments(data);
_testContext.SetTestData(data);
_testContext.SetDisplayName(displayName);

TestResult[] testResults = ignoreFromTestDataRow is not null
? [TestResult.CreateIgnoredResult(ignoreFromTestDataRow)]
? [TestResultHelpers.CreateIgnoredResult(ignoreFromTestDataRow)]
: await ExecuteTestAsync(_testMethodInfo);

stopwatch.Stop();
Expand Down
16 changes: 16 additions & 0 deletions src/Adapter/MSTest.TestAdapter/Execution/TestResultHelpers.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.Execution;

internal static class TestResultHelpers
{
internal static TestResult CreateIgnoredResult(string? ignoreReason)
=> new()
{
Outcome = UnitTestOutcome.Ignored,
IgnoreReason = ignoreReason,

Check failure on line 14 in src/Adapter/MSTest.TestAdapter/Execution/TestResultHelpers.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Release)

src/Adapter/MSTest.TestAdapter/Execution/TestResultHelpers.cs#L14

src/Adapter/MSTest.TestAdapter/Execution/TestResultHelpers.cs(14,13): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'TestResult' does not contain a definition for 'IgnoreReason'
};
}
2 changes: 1 addition & 1 deletion src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@
RetryBaseAttribute? retryAttribute = testMethodInfo.RetryAttribute;
var testMethodRunner = new TestMethodRunner(testMethodInfo, testMethod, testContextForTestExecution);
result = await testMethodRunner.ExecuteAsync(classInitializeResult.LogOutput!, classInitializeResult.LogError!, classInitializeResult.DebugTrace!, classInitializeResult.TestContextMessages!);
if (retryAttribute is not null && !RetryBaseAttribute.IsAcceptableResultForRetry(result))

Check failure on line 196 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Debug)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L196

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(196,79): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryBaseAttribute' does not contain a definition for 'IsAcceptableResultForRetry'

Check failure on line 196 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build MacOS Release)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L196

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(196,79): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryBaseAttribute' does not contain a definition for 'IsAcceptableResultForRetry'

Check failure on line 196 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L196

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(196,79): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryBaseAttribute' does not contain a definition for 'IsAcceptableResultForRetry'
{
RetryResult retryResult = await retryAttribute.ExecuteAsync(

Check failure on line 198 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Debug)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L198

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(198,76): error CS0122: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryBaseAttribute.ExecuteAsync(RetryContext)' is inaccessible due to its protection level

Check failure on line 198 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build MacOS Release)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L198

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(198,76): error CS0122: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryBaseAttribute.ExecuteAsync(RetryContext)' is inaccessible due to its protection level

Check failure on line 198 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L198

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(198,76): error CS0122: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryBaseAttribute.ExecuteAsync(RetryContext)' is inaccessible due to its protection level
new RetryContext(

Check failure on line 199 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Debug)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L199

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(199,37): error CS1729: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryContext' does not contain a constructor that takes 2 arguments

Check failure on line 199 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build MacOS Release)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L199

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(199,37): error CS1729: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryContext' does not contain a constructor that takes 2 arguments

Check failure on line 199 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L199

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(199,37): error CS1729: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryContext' does not contain a constructor that takes 2 arguments
async () => await testMethodRunner.ExecuteAsync(
classInitializeResult.LogOutput!,
classInitializeResult.LogError!,
classInitializeResult.DebugTrace!,
classInitializeResult.TestContextMessages!), result));

result = retryResult.TryGetLast() ?? throw ApplicationStateGuard.Unreachable();

Check failure on line 206 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Debug)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L206

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(206,50): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryResult' does not contain a definition for 'TryGetLast' and no accessible extension method 'TryGetLast' accepting a first argument of type 'RetryResult' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 206 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build MacOS Release)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L206

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(206,50): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryResult' does not contain a definition for 'TryGetLast' and no accessible extension method 'TryGetLast' accepting a first argument of type 'RetryResult' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 206 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L206

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(206,50): error CS1061: (NETCORE_ENGINEERING_TELEMETRY=Build) 'RetryResult' does not contain a definition for 'TryGetLast' and no accessible extension method 'TryGetLast' accepting a first argument of type 'RetryResult' could be found (are you missing a using directive or an assembly reference?)
}
}
}
Expand All @@ -228,7 +228,7 @@
new TestResult
{
Outcome = UnitTestOutcome.Failed,
IgnoreReason = ex.Message,

Check failure on line 231 in src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs

View check run for this annotation

Azure Pipelines / microsoft.testfx (Build Linux Debug)

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs#L231

src/Adapter/MSTest.TestAdapter/Execution/UnitTestRunner.cs(231,21): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'TestResult' does not contain a definition for 'IgnoreReason'
}
];
}
Expand Down Expand Up @@ -427,7 +427,7 @@
if (shouldIgnoreClass || shouldIgnoreMethod)
{
notRunnableResult =
[TestResult.CreateIgnoredResult(ignoreMessage)];
[TestResultHelpers.CreateIgnoredResult(ignoreMessage)];
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,15 @@

<ItemGroup>
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" />
<PackageReference Include="Polyfill" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
<Compile Include="$(RepoRoot)src\TestFramework\TestFramework\Internal\StringEx.cs" Link="Internal\StringEx" />
<Compile Include="$(RepoRoot)src\TestFramework\TestFramework\Internal\DebugEx.cs" Link="Internal\DebugEx.cs" />
<Compile Include="$(RepoRoot)src\TestFramework\TestFramework.Extensions\TestContextConstants.cs" Link="TestFramework.Extensions" />
</ItemGroup>

<PropertyGroup>
<!-- Enable AOT analyzer warnings to make sure we don't call APIs that would fail when we use source generator mode together with NativeAOT. -->
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void Load(XmlReader reader)
/// <param name="source">The source.</param>
/// <returns>A collection of properties.</returns>
public IDictionary<string, object> GetProperties(string? source)
#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
=> TestDeployment.GetDeploymentInformation(source);
#else
=> new Dictionary<string, object>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ public TestContextImplementation(ITestMethod? testMethod, StringWriter stringWri
? new Dictionary<string, object?>(properties)
: new Dictionary<string, object?>(properties)
{
[FullyQualifiedTestClassNameLabel] = testMethod.FullClassName,
[ManagedTypeLabel] = testMethod.ManagedTypeName,
[ManagedMethodLabel] = testMethod.ManagedMethodName,
[TestNameLabel] = testMethod.Name,
[TestContextConstants.FullyQualifiedTestClassNameLabel] = testMethod.FullClassName,
[TestContextConstants.ManagedTypeLabel] = testMethod.ManagedTypeName,
[TestContextConstants.ManagedMethodLabel] = testMethod.ManagedMethodName,
[TestContextConstants.TestNameLabel] = testMethod.Name,
};

_testResultFiles = [];
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Deployment;
#endif
using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Interface;
#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Utilities;
#endif
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;
#if NETFRAMEWORK
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Utilities;
#endif
#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
using Microsoft.VisualStudio.TestTools.UnitTesting;
#endif

Expand All @@ -29,7 +29,7 @@ namespace Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices;
#endif
public class TestDeployment : ITestDeployment
{
#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
#region Service Utility Variables

private readonly DeploymentItemUtility _deploymentItemUtility;
Expand Down Expand Up @@ -80,7 +80,7 @@ internal TestDeployment(DeploymentItemUtility deploymentItemUtility, DeploymentU
/// <param name="warnings"> The warnings. </param>
/// <returns> A string of deployment items. </returns>
public KeyValuePair<string, string>[]? GetDeploymentItems(MethodInfo method, Type type, ICollection<string> warnings) =>
#if WINDOWS_UWP
#if WINDOWS_UWP || WIN_UI
null;
#else
_deploymentItemUtility.GetDeploymentItems(method, _deploymentItemUtility.GetClassLevelDeploymentItems(type, warnings), warnings);
Expand All @@ -91,7 +91,7 @@ internal TestDeployment(DeploymentItemUtility deploymentItemUtility, DeploymentU
/// </summary>
public void Cleanup()
{
#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
// Delete the deployment directory
if (RunDirectories != null && _adapterSettings?.DeleteDeploymentDirectoryAfterTestRunIsComplete == true)
{
Expand All @@ -109,7 +109,7 @@ public void Cleanup()
/// </summary>
/// <returns> The deployment output directory. </returns>
public string? GetDeploymentDirectory() =>
#if WINDOWS_UWP
#if WINDOWS_UWP || WIN_UI
null;
#else
RunDirectories?.OutDirectory;
Expand All @@ -125,7 +125,7 @@ public void Cleanup()
[SuppressMessage("Naming", "CA1725:Parameter names should match base declaration", Justification = "Part of the public API")]
public bool Deploy(IEnumerable<TestCase> tests, IRunContext? runContext, IFrameworkHandle frameworkHandle)
{
#if WINDOWS_UWP
#if WINDOWS_UWP || WIN_UI
return false;
#else
DebugEx.Assert(tests != null, "tests");
Expand Down Expand Up @@ -178,7 +178,7 @@ group test by test.Source into testGroup
#endif
}

#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI
internal static IDictionary<string, object> GetDeploymentInformation(string? source)
{
var properties = new Dictionary<string, object>(capacity: 8);
Expand All @@ -192,15 +192,15 @@ internal static IDictionary<string, object> GetDeploymentInformation(string? sou
applicationBaseDirectory = Path.GetDirectoryName(source)!;
}

properties[TestContext.TestRunDirectoryLabel] = RunDirectories?.RootDeploymentDirectory ?? applicationBaseDirectory;
properties[TestContext.DeploymentDirectoryLabel] = RunDirectories?.OutDirectory ?? applicationBaseDirectory;
properties[TestContext.ResultsDirectoryLabel] = RunDirectories?.InDirectory ?? applicationBaseDirectory;
properties[TestContext.TestRunResultsDirectoryLabel] = RunDirectories?.InMachineNameDirectory ?? applicationBaseDirectory;
properties[TestContext.TestResultsDirectoryLabel] = RunDirectories?.InDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.TestRunDirectoryLabel] = RunDirectories?.RootDeploymentDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.DeploymentDirectoryLabel] = RunDirectories?.OutDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.ResultsDirectoryLabel] = RunDirectories?.InDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.TestRunResultsDirectoryLabel] = RunDirectories?.InMachineNameDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.TestResultsDirectoryLabel] = RunDirectories?.InDirectory ?? applicationBaseDirectory;
#pragma warning disable CS0618 // Type or member is obsolete
properties[TestContext.TestDirLabel] = RunDirectories?.RootDeploymentDirectory ?? applicationBaseDirectory;
properties[TestContext.TestDeploymentDirLabel] = RunDirectories?.OutDirectory ?? applicationBaseDirectory;
properties[TestContext.TestLogsDirLabel] = RunDirectories?.InMachineNameDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.TestDirLabel] = RunDirectories?.RootDeploymentDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.TestDeploymentDirLabel] = RunDirectories?.OutDirectory ?? applicationBaseDirectory;
properties[TestContextConstants.TestLogsDirLabel] = RunDirectories?.InMachineNameDirectory ?? applicationBaseDirectory;
#pragma warning restore CS0618 // Type or member is obsolete

return properties;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI

using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Deployment;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI

#if NETFRAMEWORK
using System.Security;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

#if !WINDOWS_UWP
#if !WINDOWS_UWP && !WIN_UI

using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Deployment;
using Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices.Extensions;
Expand Down
5 changes: 0 additions & 5 deletions src/TestFramework/TestFramework.Extensions/Friends.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,4 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

// Friend assemblies
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
[assembly: InternalsVisibleTo("MSTestAdapter.PlatformServices.UnitTests, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]

#if WINDOWS_UWP || WIN_UI
[assembly: InternalsVisibleTo("Microsoft.VisualStudio.TestPlatform.MSTestAdapter.PlatformServices, PublicKey=002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293")]
#endif
Loading
Loading