|
| 1 | +From 0fc879489677500f088774f1e5f0b45f7457680e Mon Sep 17 00:00:00 2001 |
| 2 | +From: Viktor Hofer < [email protected]> |
| 3 | +Date: Thu, 10 Apr 2025 14:05:56 +0200 |
| 4 | +Subject: [PATCH] Fix formatting in two files |
| 5 | + |
| 6 | +Backport: https://github.com/microsoft/vstest/pull/15047 |
| 7 | + |
| 8 | +--- |
| 9 | + src/Microsoft.TestPlatform.Build/Tasks/VSTestLogsTask.cs | 1 + |
| 10 | + .../ExtensionDecorators/ExtensionDecoratorFactory.cs | 1 + |
| 11 | + .../ProtocolVersioning.cs | 1 + |
| 12 | + .../EventHandlers/NullPathConverter.cs | 1 + |
| 13 | + .../ShowDeprecateDotnetVStestMessageArgumentProcessor.cs | 1 + |
| 14 | + test/TestAssets/NetStandard2Library/Class1.cs | 1 + |
| 15 | + test/vstest.ProgrammerTests/Fakes/FakeTestHost.cs | 1 + |
| 16 | + 7 files changed, 7 insertions(+) |
| 17 | + |
| 18 | +diff --git a/src/Microsoft.TestPlatform.Build/Tasks/VSTestLogsTask.cs b/src/Microsoft.TestPlatform.Build/Tasks/VSTestLogsTask.cs |
| 19 | +index d5dfe8c7d..7e1a0dd8b 100644 |
| 20 | +--- a/src/Microsoft.TestPlatform.Build/Tasks/VSTestLogsTask.cs |
| 21 | ++++ b/src/Microsoft.TestPlatform.Build/Tasks/VSTestLogsTask.cs |
| 22 | +@@ -7,6 +7,7 @@ using Microsoft.Build.Framework; |
| 23 | + using Microsoft.Build.Utilities; |
| 24 | + |
| 25 | + namespace Microsoft.TestPlatform.Build.Tasks; |
| 26 | ++ |
| 27 | + public class VSTestLogsTask : Task |
| 28 | + { |
| 29 | + public string? LogType { get; set; } |
| 30 | +diff --git a/src/Microsoft.TestPlatform.Common/ExtensionDecorators/ExtensionDecoratorFactory.cs b/src/Microsoft.TestPlatform.Common/ExtensionDecorators/ExtensionDecoratorFactory.cs |
| 31 | +index 7a82106c7..498593b48 100644 |
| 32 | +--- a/src/Microsoft.TestPlatform.Common/ExtensionDecorators/ExtensionDecoratorFactory.cs |
| 33 | ++++ b/src/Microsoft.TestPlatform.Common/ExtensionDecorators/ExtensionDecoratorFactory.cs |
| 34 | +@@ -5,6 +5,7 @@ using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter; |
| 35 | + using Microsoft.VisualStudio.TestPlatform.Utilities; |
| 36 | + |
| 37 | + namespace Microsoft.VisualStudio.TestPlatform.Common.ExtensionDecorators; |
| 38 | ++ |
| 39 | + internal class ExtensionDecoratorFactory |
| 40 | + { |
| 41 | + private readonly IFeatureFlag _featureFlag; |
| 42 | +diff --git a/src/Microsoft.TestPlatform.CommunicationUtilities/ProtocolVersioning.cs b/src/Microsoft.TestPlatform.CommunicationUtilities/ProtocolVersioning.cs |
| 43 | +index 20ce0c44d..577c849a0 100644 |
| 44 | +--- a/src/Microsoft.TestPlatform.CommunicationUtilities/ProtocolVersioning.cs |
| 45 | ++++ b/src/Microsoft.TestPlatform.CommunicationUtilities/ProtocolVersioning.cs |
| 46 | +@@ -4,6 +4,7 @@ |
| 47 | + using Microsoft.VisualStudio.TestPlatform.CommunicationUtilities.ObjectModel; |
| 48 | + |
| 49 | + namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; |
| 50 | ++ |
| 51 | + internal static class ProtocolVersioning |
| 52 | + { |
| 53 | + public const int HighestSupportedVersion = Version7; |
| 54 | +diff --git a/src/Microsoft.TestPlatform.CrossPlatEngine/EventHandlers/NullPathConverter.cs b/src/Microsoft.TestPlatform.CrossPlatEngine/EventHandlers/NullPathConverter.cs |
| 55 | +index 9460f19b0..3f699402e 100644 |
| 56 | +--- a/src/Microsoft.TestPlatform.CrossPlatEngine/EventHandlers/NullPathConverter.cs |
| 57 | ++++ b/src/Microsoft.TestPlatform.CrossPlatEngine/EventHandlers/NullPathConverter.cs |
| 58 | +@@ -10,6 +10,7 @@ using Microsoft.VisualStudio.TestPlatform.ObjectModel; |
| 59 | + using Microsoft.VisualStudio.TestPlatform.ObjectModel.Client; |
| 60 | + |
| 61 | + namespace Microsoft.VisualStudio.TestPlatform.CommunicationUtilities; |
| 62 | ++ |
| 63 | + internal class NullPathConverter : IPathConverter |
| 64 | + { |
| 65 | + private static readonly Lazy<NullPathConverter> LazyInstance = new(() => new NullPathConverter()); |
| 66 | +diff --git a/src/vstest.console/Processors/ShowDeprecateDotnetVStestMessageArgumentProcessor.cs b/src/vstest.console/Processors/ShowDeprecateDotnetVStestMessageArgumentProcessor.cs |
| 67 | +index 71db32aa9..686c3a44a 100644 |
| 68 | +--- a/src/vstest.console/Processors/ShowDeprecateDotnetVStestMessageArgumentProcessor.cs |
| 69 | ++++ b/src/vstest.console/Processors/ShowDeprecateDotnetVStestMessageArgumentProcessor.cs |
| 70 | +@@ -5,6 +5,7 @@ using System; |
| 71 | + using System.Linq; |
| 72 | + |
| 73 | + namespace Microsoft.VisualStudio.TestPlatform.CommandLine.Processors; |
| 74 | ++ |
| 75 | + internal class ShowDeprecateDotnetVStestMessageArgumentProcessor : IArgumentProcessor |
| 76 | + { |
| 77 | + public const string CommandName = "/ShowDeprecateDotnetVSTestMessage"; |
| 78 | +diff --git a/test/TestAssets/NetStandard2Library/Class1.cs b/test/TestAssets/NetStandard2Library/Class1.cs |
| 79 | +index 7d5d17aa1..036fa82d3 100644 |
| 80 | +--- a/test/TestAssets/NetStandard2Library/Class1.cs |
| 81 | ++++ b/test/TestAssets/NetStandard2Library/Class1.cs |
| 82 | +@@ -4,6 +4,7 @@ |
| 83 | + using System; |
| 84 | + |
| 85 | + namespace NetStandard2Library; |
| 86 | ++ |
| 87 | + public class Class1 |
| 88 | + { |
| 89 | + |
| 90 | +diff --git a/test/vstest.ProgrammerTests/Fakes/FakeTestHost.cs b/test/vstest.ProgrammerTests/Fakes/FakeTestHost.cs |
| 91 | +index 3a1cb11ab..5be76c100 100644 |
| 92 | +--- a/test/vstest.ProgrammerTests/Fakes/FakeTestHost.cs |
| 93 | ++++ b/test/vstest.ProgrammerTests/Fakes/FakeTestHost.cs |
| 94 | +@@ -2,6 +2,7 @@ |
| 95 | + // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 96 | + |
| 97 | + namespace vstest.ProgrammerTests.Fakes; |
| 98 | ++ |
| 99 | + internal class FakeTestHostFixture : IDisposable |
| 100 | + { |
| 101 | + public int Id { get; } |
0 commit comments