Skip to content

Commit

Permalink
refactor: Fixed typos, AllOuput to AllOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
ahuca committed Feb 19, 2024
1 parent d66a262 commit d4be1a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/Test.Utils/CommandRunnerResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal class CommandRunnerResult

public bool Success => ExitCode == 0;

public string AllOuput => Output + Environment.NewLine + Errors;
public string AllOutput => Output + Environment.NewLine + Errors;

internal CommandRunnerResult(Process process, int exitCode, string output, string error)
{
Expand Down
12 changes: 6 additions & 6 deletions test/TwinGet.Cli.FuncTest/Commands/PackCommandTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@ public void Pack_WithManagedPlcProject_ShouldSucceed(bool provideSolution)

// Act
var result = RunPack(args);
_output.WriteLine(result.AllOuput);
_output.WriteLine(result.AllOutput);

// Assert
result.ExitCode.Should().Be(0);
result
.AllOuput.Should()
.AllOutput.Should()
.Contain(OtherStrings.PackSuccess.Replace("{Path}", expectedPackagePath));
if (!provideSolution)
{
result
.AllOuput.Should()
.AllOutput.Should()
.Contain(SuggestionStrings.SpecifySolutionFileForBetterPerformance);
}

Expand All @@ -65,13 +65,13 @@ public void Pack_WithUnmanagedPlcProject_ShouldFail()

// Act
var result = RunPack(args);
_output.WriteLine(result.AllOuput);
_output.WriteLine(result.AllOutput);

// Assert
result.ExitCode.Should().NotBe(0);
result.AllOuput.Should().Contain("The specified library is not a managed library.");
result.AllOutput.Should().Contain("The specified library is not a managed library.");
result
.AllOuput.Should()
.AllOutput.Should()
.Contain(
CoreErrorStrings.FailedToSavePlcLibrary.Replace(
"{Path}",
Expand Down

0 comments on commit d4be1a5

Please sign in to comment.