Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
Modify method name
Browse files Browse the repository at this point in the history
  • Loading branch information
StrangeRanger committed Mar 9, 2024
1 parent 0e54106 commit 6b47790
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ActiveDirectoryQuerier.Tests/AppConsoleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public async Task ClearConsole_ClearsConsole_SuccessfullyCleared()
var (appConsole, _) = await ExecuteCommandAsync(command);

// Act
appConsole.ClearConsole();
appConsole.Clear();

// Assert
Assert.Empty(appConsole.ConsoleOutput);
Expand Down
3 changes: 2 additions & 1 deletion ActiveDirectoryQuerier/AppConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public sealed class AppConsole : INotifyPropertyChanged
/// <important>
/// Do not set this property directly. Use the Append method instead. It's public for data binding purposes.
/// </important>
/// TODO: Find a way to make the set of this property private.
public string ConsoleOutput
{
get => _consoleOutput;
Expand All @@ -33,7 +34,7 @@ public string ConsoleOutput
/// <summary>
/// Clears the console output.
/// </summary>
public void ClearConsole()
public void Clear()
{
ConsoleOutput = string.Empty;
}
Expand Down
2 changes: 1 addition & 1 deletion ActiveDirectoryQuerier/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private void ClearConsoleOutput(object _)
// If the user selects yes, clear the console
if (result == MessageBoxResult.Yes)
{
PowerShellOutput.ClearConsole();
PowerShellOutput.Clear();
}
}

Expand Down

0 comments on commit 6b47790

Please sign in to comment.