mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
[Autobreak] - Add test
This commit is contained in:
parent
4eb49cab44
commit
d74831f6f7
@ -48,6 +48,17 @@ namespace Test.Logic
|
||||
Assert.AreEqual(target, s2);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[DeploymentItem("SubtitleEdit.exe")]
|
||||
public void AutoBreakLine5()
|
||||
{
|
||||
Configuration.Settings.General.SubtitleLineMaximumLength = 43;
|
||||
const string s1 = "<i>30 years ago I'd found</i> The Book of the Dead.";
|
||||
var s2 = Utilities.AutoBreakLine(s1);
|
||||
var Expected = "<i>30 years ago I'd found</i>" + Environment.NewLine + "The Book of the Dead.";
|
||||
Assert.AreEqual(Expected, s2);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
[DeploymentItem("SubtitleEdit.exe")]
|
||||
public void AutoBreakLine5DoNoBreakAtPeriod()
|
||||
|
Loading…
Reference in New Issue
Block a user