Skip to content

Commit e99d370

Browse files
committed
chore: update test
1 parent fbae2d2 commit e99d370

File tree

1 file changed

+22
-2
lines changed

1 file changed

+22
-2
lines changed

src/Flucli.Test/Program.cs

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using System.Text;
2+
using System.Text.Unicode;
23

34
namespace Flucli.Test;
45

@@ -8,7 +9,24 @@ static void Main(string[] args)
89
{
910
Task.Run(async () =>
1011
{
12+
// ---
1113
Console.WriteLine("CASE1");
14+
{
15+
CliResult result = await @"D:\ema\utils\DouyinLiveRecorder\DouyinLiveRecorder.v3.0.8\DouyinLiveRecorder.exe"
16+
.WithArguments("")
17+
.WithStandardErrorPipe(PipeTarget.ToDelegate((a) =>
18+
{
19+
Console.WriteLine(a);
20+
}, Encoding.UTF8))
21+
.ExecuteAsync();
22+
23+
Console.WriteLine("ExitCode is " + result.ExitCode);
24+
}
25+
Console.ReadLine();
26+
Console.WriteLine("---");
27+
28+
// ---
29+
Console.WriteLine("CASE2");
1230
{
1331
CliResult result = await "cmd"
1432
.WithArguments("/c echo Hello World!")
@@ -18,7 +36,8 @@ static void Main(string[] args)
1836
}
1937
Console.WriteLine("---");
2038

21-
Console.WriteLine("CASE2");
39+
// ---
40+
Console.WriteLine("CASE3");
2241
{
2342
StringBuilder stdout = new();
2443
StringBuilder stderr = new();
@@ -39,7 +58,8 @@ static void Main(string[] args)
3958
}
4059
Console.WriteLine("---");
4160

42-
Console.WriteLine("CASE3");
61+
// ---
62+
Console.WriteLine("CASE4");
4363
{
4464
StringBuilder stdout = new();
4565
StringBuilder stderr = new();

0 commit comments

Comments
 (0)