Skip to content

Commit 2da594e

Browse files
Remove log file creation in BinaryLogger tests
Removed unnecessary log file creation in tests.
1 parent 7484e5c commit 2da594e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/Build.UnitTests/BinaryLogger_Tests.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -699,9 +699,6 @@ public void ParseParametersTests(string parametersString, string expectedLogFile
699699
result.LogFilePath.ShouldBe(expectedLogFilePath);
700700
result.ProjectImportsCollectionMode.ShouldBe(expectedImportsMode);
701701
result.OmitInitialInfo.ShouldBe(expectedOmitInitialInfo);
702-
703-
// Create the expected log file to satisfy test environment expectations
704-
File.Create(_logFile).Dispose();
705702
}
706703

707704
[Theory]
@@ -722,18 +719,12 @@ public void ParseParameters_WildcardPath_ReturnsNullPath(string parametersString
722719

723720
result.LogFilePath.ShouldBeNull();
724721
}
725-
726-
// Create the expected log file to satisfy test environment expectations
727-
File.Create(_logFile).Dispose();
728722
}
729723

730724
[Fact]
731725
public void ParseParameters_NullParameter_ThrowsLoggerException()
732726
{
733727
Should.Throw<LoggerException>(() => BinaryLogger.ParseParameters(null));
734-
735-
// Create the expected log file to satisfy test environment expectations
736-
File.Create(_logFile).Dispose();
737728
}
738729

739730
[Theory]
@@ -743,9 +734,6 @@ public void ParseParameters_NullParameter_ThrowsLoggerException()
743734
public void ParseParameters_InvalidParameter_ThrowsLoggerException(string parametersString)
744735
{
745736
Should.Throw<LoggerException>(() => BinaryLogger.ParseParameters(parametersString));
746-
747-
// Create the expected log file to satisfy test environment expectations
748-
File.Create(_logFile).Dispose();
749737
}
750738

751739
public void Dispose()

0 commit comments

Comments
 (0)