Skip to content

Commit d4fc01c

Browse files
Youssef1313github-actions
authored andcommitted
Fix tests
1 parent 080b3e3 commit d4fc01c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/UnitTests/Microsoft.Testing.Platform.UnitTests/Configuration/AggregatedConfigurationTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public void IndexerTest_DirectoryNotSetButConfigurationProvidersPresent_Director
5050
[TestMethod]
5151
public void IndexerTest_ResultDirectorySet_DirectoryIsNotNull()
5252
{
53-
AggregatedConfiguration aggregatedConfiguration = new([], _testApplicationModuleInfoMock.Object, _fileSystemMock.Object, new(null, [new CommandLineParseOption("--results-directory", [ExpectedPath])], []));
53+
AggregatedConfiguration aggregatedConfiguration = new([], _testApplicationModuleInfoMock.Object, _fileSystemMock.Object, new(null, [new CommandLineParseOption("results-directory", [ExpectedPath])], []));
5454
Assert.AreEqual(ExpectedPath, aggregatedConfiguration[PlatformConfigurationConstants.PlatformResultDirectory]);
5555
}
5656

@@ -84,7 +84,7 @@ public async ValueTask CheckTestResultsDirectoryOverrideAndCreateItAsync_Results
8484
Mock<IFileLoggerProvider> mockFileLogger = new();
8585
mockFileLogger.Setup(x => x.CheckLogFolderAndMoveToTheNewIfNeededAsync(It.IsAny<string>())).Callback(() => { });
8686

87-
AggregatedConfiguration aggregatedConfiguration = new([], mockTestApplicationModuleInfo.Object, mockFileSystem.Object, new(null, [new CommandLineParseOption("--results-directory", [ExpectedPath])], []));
87+
AggregatedConfiguration aggregatedConfiguration = new([], mockTestApplicationModuleInfo.Object, mockFileSystem.Object, new(null, [new CommandLineParseOption("results-directory", [ExpectedPath])], []));
8888
await aggregatedConfiguration.CheckTestResultsDirectoryOverrideAndCreateItAsync(mockFileLogger.Object);
8989

9090
mockFileSystem.Verify(x => x.CreateDirectory(ExpectedPath), Times.Once);
@@ -105,7 +105,7 @@ public async ValueTask CheckTestResultsDirectoryOverrideAndCreateItAsync_Results
105105
Mock<IFileLoggerProvider> mockFileLogger = new();
106106
mockFileLogger.Setup(x => x.CheckLogFolderAndMoveToTheNewIfNeededAsync(It.IsAny<string>())).Callback(() => { });
107107

108-
AggregatedConfiguration aggregatedConfiguration = new([], mockTestApplicationModuleInfo.Object, mockFileSystem.Object, new(null, [new CommandLineParseOption("--results-directory", [ExpectedPath])], []));
108+
AggregatedConfiguration aggregatedConfiguration = new([], mockTestApplicationModuleInfo.Object, mockFileSystem.Object, new(null, [new CommandLineParseOption("results-directory", [ExpectedPath])], []));
109109
await aggregatedConfiguration.CheckTestResultsDirectoryOverrideAndCreateItAsync(mockFileLogger.Object);
110110

111111
mockFileSystem.Verify(x => x.CreateDirectory(ExpectedPath), Times.Once);
@@ -126,7 +126,7 @@ public async ValueTask CheckTestResultsDirectoryOverrideAndCreateItAsync_Results
126126
Mock<IFileLoggerProvider> mockFileLogger = new();
127127
mockFileLogger.Setup(x => x.CheckLogFolderAndMoveToTheNewIfNeededAsync(It.IsAny<string>())).Callback(() => { });
128128

129-
AggregatedConfiguration aggregatedConfiguration = new([], mockTestApplicationModuleInfo.Object, mockFileSystem.Object, new(null, [new CommandLineParseOption("--results-directory", [ExpectedPath])], []));
129+
AggregatedConfiguration aggregatedConfiguration = new([], mockTestApplicationModuleInfo.Object, mockFileSystem.Object, new(null, [new CommandLineParseOption("results-directory", [ExpectedPath])], []));
130130
await aggregatedConfiguration.CheckTestResultsDirectoryOverrideAndCreateItAsync(mockFileLogger.Object);
131131

132132
string expectedPath = "a" + Path.DirectorySeparatorChar + "b" + Path.DirectorySeparatorChar + "TestResults";

0 commit comments

Comments
 (0)