Skip to content

Commit

Permalink
Comment TemporaryFileTest
Browse files Browse the repository at this point in the history
  • Loading branch information
FreePhoenix888 committed Dec 15, 2022
1 parent 1ff1f40 commit e694bc6
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions csharp/Platform.IO.Tests/TemporaryFileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,24 @@ namespace Platform.IO.Tests
{
public class TemporaryFileTests
{
[Fact(Skip = "")]
public void TemporaryFileTest()
{
var startInfo = new ProcessStartInfo
{
WorkingDirectory = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "..", "Platform.IO.Tests.TemporaryFileTest")),
UseShellExecute = false,
RedirectStandardOutput = true,
FileName = "dotnet",
Arguments = "run --project Platform.IO.Tests.TemporaryFileTest.csproj"
};
using Process process = new(){StartInfo = startInfo};
process.Start();
var path = process.StandardOutput.ReadLine();
Assert.True(File.Exists(path));
process.WaitForExit();
Assert.False(File.Exists(path));
}
// [Fact(Skip = "")]
// public void TemporaryFileTest()
// {
// var startInfo = new ProcessStartInfo
// {
// WorkingDirectory = Path.GetFullPath(Path.Combine(Directory.GetCurrentDirectory(), "..", "..", "..", "..", "Platform.IO.Tests.TemporaryFileTest")),
// UseShellExecute = false,
// RedirectStandardOutput = true,
// FileName = "dotnet",
// Arguments = "run --project Platform.IO.Tests.TemporaryFileTest.csproj"
// };
// using Process process = new(){StartInfo = startInfo};
// process.Start();
// var path = process.StandardOutput.ReadLine();
// Assert.True(File.Exists(path));
// process.WaitForExit();
// Assert.False(File.Exists(path));
// }

[Fact]
public void TemporaryFileTestWithoutConsoleApp()
Expand Down

0 comments on commit e694bc6

Please sign in to comment.