Skip to content

Commit 3705094

Browse files
Keboojonsequitur
authored andcommitted
public != internal
1 parent 4e00994 commit 3705094

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/System.CommandLine.Suggest.Tests/DotnetSuggestEndToEndTests.cs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// Copyright (c) .NET Foundation and contributors. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
using System.CommandLine.Invocation;
4+
using FluentAssertions;
55
using System.CommandLine.Tests.Utility;
66
using System.IO;
7-
using FluentAssertions;
87
using System.Linq;
98
using System.Text;
109
using System.Threading.Tasks;
@@ -158,7 +157,7 @@ await ExecuteAsync(
158157
.Be($"--apple{NewLine}--banana{NewLine}--cherry{NewLine}--durian{NewLine}--help{NewLine}--version{NewLine}-?{NewLine}-h{NewLine}/?{NewLine}/h{NewLine}");
159158
}
160159

161-
public static async Task<int> ExecuteAsync(
160+
private static async Task ExecuteAsync(
162161
string command,
163162
string args,
164163
Action<string> stdOut = null,
@@ -216,7 +215,7 @@ public static async Task<int> ExecuteAsync(
216215
process.BeginOutputReadLine();
217216
process.BeginErrorReadLine();
218217

219-
return await process.CompleteAsync();
218+
await process.WaitForExitAsync();
220219
}
221220
}
222221
}

src/System.CommandLine/Invocation/Process.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
namespace System.CommandLine.Invocation
88
{
9-
public static class Process
9+
internal static class Process
1010
{
1111
public static async Task<int> CompleteAsync(
1212
this Diagnostics.Process process,

0 commit comments

Comments
 (0)