Skip to content

Commit 69ed5b2

Browse files
authored
suppress TPEXP warning for solution (#5984)
1 parent 45cfde3 commit 69ed5b2

16 files changed

Lines changed: 3 additions & 34 deletions

File tree

Directory.Build.props

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
<DebugType>embedded</DebugType>
3737
<!-- Needs to be part of the building of prod code -->
3838
<MoqPublicKey>0024000004800000940000000602000000240000525341310004000001000100c547cac37abd99c8db225ef2f6c8a3602f3b3606cc9891605d02baa56104f4cfc0734aa39b93bf7852f7d9266654753cc297e7d2edfe0bac1cdcf9f717241550e0a7b191195b7667bb4f64bcb8e2121380fd1d9d46ad2d92d2d15605093924cceaf74c4861eff62abf69b9291ed0a340e113be11e6a7d3113e92484cf7045cc7</MoqPublicKey>
39+
40+
<!-- Experimental test API usages are allowed inside this solution -->
41+
<NoWarn>$(NoWarn);TPEXP</NoWarn>
3942
</PropertyGroup>
4043

4144
<!-- Versioning -->

src/Adapter/MSTest.Engine/Engine/BFSTestNodeVisitor.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
namespace Microsoft.Testing.Framework;
1111

12-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1312
internal sealed class BFSTestNodeVisitor
1413
{
1514
private readonly IEnumerable<TestNode> _rootTestNodes;

src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestBannerCapability.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77

88
namespace Microsoft.VisualStudio.TestTools.UnitTesting;
99

10-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
11-
1210
[SuppressMessage("ApiDesign", "RS0030:Do not use banned APIs", Justification = "We can use MTP from this folder")]
1311
internal sealed class MSTestBannerCapability : IBannerMessageOwnerCapability
1412
{

src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/MSTestGracefulStopTestExecutionCapability.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@
77

88
namespace Microsoft.VisualStudio.TestTools.UnitTesting;
99

10-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
11-
1210
[SuppressMessage("ApiDesign", "RS0030:Do not use banned APIs", Justification = "We can use MTP from this folder")]
1311
internal sealed class MSTestGracefulStopTestExecutionCapability : IGracefulStopTestExecutionCapability
14-
#pragma warning restore TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
1512
{
1613
private MSTestGracefulStopTestExecutionCapability()
1714
{

src/Adapter/MSTest.TestAdapter/TestingPlatformAdapter/TestApplicationBuilderExtensions.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,13 @@ public static void AddMSTest(this ITestApplicationBuilder testApplicationBuilder
3939
testApplicationBuilder.AddRunSettingsService(extension);
4040
testApplicationBuilder.AddTestCaseFilterService(extension);
4141
testApplicationBuilder.AddTestRunParametersService(extension);
42-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
4342
testApplicationBuilder.AddMaximumFailedTestsService(extension);
44-
#pragma warning restore TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
4543
testApplicationBuilder.AddRunSettingsEnvironmentVariableProvider(extension);
4644
testApplicationBuilder.RegisterTestFramework(
4745
serviceProvider => new TestFrameworkCapabilities(
4846
new MSTestCapabilities(),
49-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5047
new MSTestBannerCapability(serviceProvider.GetRequiredService<IPlatformInformation>()),
5148
MSTestGracefulStopTestExecutionCapability.Instance),
52-
#pragma warning restore TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5349
(capabilities, serviceProvider) => new MSTestBridgedTestFramework(extension, getTestAssemblies, serviceProvider, capabilities));
5450
}
5551
}

src/Platform/Microsoft.Testing.Extensions.HotReload/HotReloadTestHostTestFrameworkInvoker.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ public override async Task ExecuteRequestAsync(ITestFramework testFrameworkAdapt
5151
await hotReloadOutputDevice.DisplayBeforeHotReloadSessionStartAsync().ConfigureAwait(false);
5252
}
5353

54-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5554
await testFrameworkAdapter.ExecuteRequestAsync(new(request, messageBus, new SemaphoreSlimRequestCompleteNotifier(requestSemaphore), cancellationToken)).ConfigureAwait(false);
56-
#pragma warning restore TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5755

5856
await requestSemaphore.WaitAsync(cancellationToken).ConfigureAwait(false);
5957
await ServiceProvider.GetBaseMessageBus().DrainDataAsync().ConfigureAwait(false);

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/FrameworkHandlerAdapter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5-
64
using Microsoft.Testing.Extensions.VSTestBridge.Helpers;
75
using Microsoft.Testing.Platform.Capabilities.TestFramework;
86
using Microsoft.Testing.Platform.CommandLine;

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/RunSettingsAdapter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5-
64
using Microsoft.Testing.Extensions.VSTestBridge.CommandLine;
75
using Microsoft.Testing.Extensions.VSTestBridge.Resources;
86
using Microsoft.Testing.Platform;

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/RunSettingsPatcher.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5-
64
using Microsoft.Testing.Extensions.VSTestBridge.CommandLine;
75
using Microsoft.Testing.Extensions.VSTestBridge.Resources;
86
using Microsoft.Testing.Platform;

src/Platform/Microsoft.Testing.Extensions.VSTestBridge/ObjectModel/TestCaseDiscoverySinkAdapter.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
#pragma warning disable TPEXP // Type is for evaluation purposes only and is subject to change or removal in future updates. Suppress this diagnostic to proceed.
5-
64
using Microsoft.Testing.Extensions.VSTestBridge.Helpers;
75
using Microsoft.Testing.Platform.Capabilities.TestFramework;
86
using Microsoft.Testing.Platform.CommandLine;

0 commit comments

Comments
 (0)