Add unit tests (for last commit)

This commit is contained in:
Nikolaj Olsson 2018-08-04 09:17:18 +02:00
parent 6be3d74c8a
commit 65b976a12b

View File

@ -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
//