Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Fix wrong variable being tested.
martincostello committed Jun 4, 2024
1 parent c6a9123 commit c57b6d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PseudoLocalize.Tests/EndToEndTest.cs
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ public async Task ShouldLeaveTheXmlUntouchedWhenAlreadyTransformed()
byte[] original = await File.ReadAllBytesAsync(fileName);

// Act
Program.Main(new[] { fileName, "--overwrite", "--force" });
Program.Main([fileName, "--overwrite", "--force"]);

// Assert
Assert.That(File.ReadAllBytes(fileName), Is.EqualTo(original), "The input file has changed.");
@@ -30,11 +30,11 @@ public async Task ShouldChangeTheLengthenCharacter()
byte[] original = await File.ReadAllBytesAsync(inputFileName);

// Act
Program.Main(new[] { inputFileName, "--lengthen-char", "." });
Program.Main([inputFileName, "--lengthen-char", "."]);

// Assert
Assert.That(File.ReadAllBytes(inputFileName), Is.EqualTo(original), "The input file has changed.");
Assert.That(File.ReadAllBytes(outputFileName), Is.Not.EqualTo(outputFileName), "The output file has not changed.");
Assert.That(File.ReadAllBytes(outputFileName), Is.Not.EqualTo(original), "The output file has not changed.");
Assert.That(File.ReadAllText(outputFileName), Contains.Substring(">[Åñýţĥîñĝ···]<"), "The specified lengthen character was not used.");
}
}

0 comments on commit c57b6d1

Please sign in to comment.