Fix unit test

This commit is contained in:
niksedk 2021-06-21 15:42:44 +02:00
parent 6026ab6989
commit c4fce564d7
2 changed files with 3 additions and 3 deletions

View File

@ -1287,7 +1287,7 @@ To use an API key go to "Options -> Settings -> Tools" to enter your Googl
<TranslateSelectedLines>Translate selected lines...</TranslateSelectedLines> <TranslateSelectedLines>Translate selected lines...</TranslateSelectedLines>
<AdjustDisplayDurationForSelectedLines>Adjust durations for selected lines...</AdjustDisplayDurationForSelectedLines> <AdjustDisplayDurationForSelectedLines>Adjust durations for selected lines...</AdjustDisplayDurationForSelectedLines>
<ApplyDurationLimitsForSelectedLines>Apply duration limits for selected lines...</ApplyDurationLimitsForSelectedLines> <ApplyDurationLimitsForSelectedLines>Apply duration limits for selected lines...</ApplyDurationLimitsForSelectedLines>
<ApplyCustomOverrideTag>Apply custom override tag...</ApplyCustomOverrideTag> <ApplyCustomOverrideTag>Apply custom override tags...</ApplyCustomOverrideTag>
<FixCommonErrorsInSelectedLines>Fix common errors in selected lines...</FixCommonErrorsInSelectedLines> <FixCommonErrorsInSelectedLines>Fix common errors in selected lines...</FixCommonErrorsInSelectedLines>
<ChangeCasingForSelectedLines>Change casing for selected lines...</ChangeCasingForSelectedLines> <ChangeCasingForSelectedLines>Change casing for selected lines...</ChangeCasingForSelectedLines>
<SaveSelectedLines>Save selected lines as...</SaveSelectedLines> <SaveSelectedLines>Save selected lines as...</SaveSelectedLines>

View File

@ -68,9 +68,9 @@ namespace Test.Logic
public void AutoBreakFrenchSpaceBeforePunctuation() public void AutoBreakFrenchSpaceBeforePunctuation()
{ {
Configuration.Settings.General.SubtitleLineMaximumLength = 43; Configuration.Settings.General.SubtitleLineMaximumLength = 43;
string s1 = "Et elle te le dis maintenant ? Pour quoi donc ?"; string s1 = "Et elle te le dis maintenant ? Pour quoi donc donc ?";
string s2 = Utilities.AutoBreakLine(s1, "fr"); string s2 = Utilities.AutoBreakLine(s1, "fr");
Assert.AreEqual("Et elle te le dis maintenant ?" + Environment.NewLine + "Pour quoi donc ?", s2); Assert.AreEqual("Et elle te le dis maintenant ?" + Environment.NewLine + "Pour quoi donc donc ?", s2);
} }
[TestMethod] [TestMethod]