mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-23 19:52:48 +01:00
Add unit tests (for last commit)
This commit is contained in:
parent
6be3d74c8a
commit
65b976a12b
@ -1690,6 +1690,17 @@ namespace Test.Logic.Forms
|
||||
Assert.AreEqual(source, actual);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void RemoveTextBetweenBeforeColonMakeEmpty()
|
||||
{
|
||||
var target = GetRemoveTextForHiLib();
|
||||
target.Settings.RemoveTextBeforeColon = true;
|
||||
target.Settings.RemoveTextBeforeColonOnlyUppercase = true;
|
||||
target.Settings.OnlyIfInSeparateLine = false;
|
||||
string actual = target.RemoveColon("<i>SAURON:</i>");
|
||||
Assert.AreEqual(string.Empty, actual);
|
||||
}
|
||||
|
||||
#region Additional test attributes
|
||||
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user