mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 19:22:53 +01:00
Add a few more unit tests
This commit is contained in:
parent
519f117c84
commit
dd428b937f
@ -353,5 +353,30 @@ namespace Test.Core
|
||||
var res = input.ToggleCasing(new AdvancedSubStationAlpha());
|
||||
Assert.AreEqual("how are\\nyou?", res);
|
||||
}
|
||||
|
||||
|
||||
[TestMethod]
|
||||
public void ToProperCaseFromUpper()
|
||||
{
|
||||
var input = "HOW ARE YOU?";
|
||||
var res = input.ToProperCase(null);
|
||||
Assert.AreEqual("How Are You?", res);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void ToProperCaseFromLower()
|
||||
{
|
||||
var input = "how are you?";
|
||||
var res = input.ToProperCase(null);
|
||||
Assert.AreEqual("How Are You?", res);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void ToProperCaseItalic()
|
||||
{
|
||||
var input = "<i>HOW ARE YOU?</i>";
|
||||
var res = input.ToProperCase(null);
|
||||
Assert.AreEqual("<i>How Are You?</i>", res);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user