From 70c336589e303623e4652f682147b14504035547 Mon Sep 17 00:00:00 2001 From: Rodney Richardson Date: Fri, 23 May 2025 13:05:45 +0100 Subject: [PATCH 1/2] Remove redundant TestMethod attribute --- .../SafeFileEnumerableTests.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/test/Microsoft.ComponentDetection.Common.Tests/SafeFileEnumerableTests.cs b/test/Microsoft.ComponentDetection.Common.Tests/SafeFileEnumerableTests.cs index 1579128ca..eb991b45a 100644 --- a/test/Microsoft.ComponentDetection.Common.Tests/SafeFileEnumerableTests.cs +++ b/test/Microsoft.ComponentDetection.Common.Tests/SafeFileEnumerableTests.cs @@ -91,7 +91,6 @@ public void GetEnumerator_IgnoresSubDirectories() filesFound.Should().Be(1); } - [TestMethod] [SkipTestOnWindows] public void GetEnumerator_CallsSymlinkCode() { @@ -113,7 +112,6 @@ public void GetEnumerator_CallsSymlinkCode() this.pathUtilityServiceMock.Verify(x => x.ResolvePhysicalPath(subDir.FullName), Times.AtLeastOnce); } - [TestMethod] [SkipTestOnWindows] public void GetEnumerator_DuplicatePathIgnored() { From 44a8ba2540118434b4a9eb2ce1ac4376dfa0e9e0 Mon Sep 17 00:00:00 2001 From: Rodney Richardson Date: Fri, 23 May 2025 13:06:33 +0100 Subject: [PATCH 2/2] Skip DockerService_CanPingDockerAsync on Windows. --- .../DockerServiceTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Microsoft.ComponentDetection.Common.Tests/DockerServiceTests.cs b/test/Microsoft.ComponentDetection.Common.Tests/DockerServiceTests.cs index b203be826..de6b698c6 100644 --- a/test/Microsoft.ComponentDetection.Common.Tests/DockerServiceTests.cs +++ b/test/Microsoft.ComponentDetection.Common.Tests/DockerServiceTests.cs @@ -23,7 +23,7 @@ public class DockerServiceTests public DockerServiceTests() => this.dockerService = new DockerService(this.loggerMock.Object); - [TestMethod] + [SkipTestOnWindows] public async Task DockerService_CanPingDockerAsync() { var canPingDocker = await this.dockerService.CanPingDockerAsync();