mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 23:12:34 +01:00
Added a few unit tests
This commit is contained in:
parent
f53b2e0f91
commit
8add33802b
@ -728,6 +728,42 @@ namespace Test
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
[DeploymentItem("SubtitleEdit.exe")]
|
||||||
|
public void FixMissingSpacesNoChange6()
|
||||||
|
{
|
||||||
|
using (var target = GetFixCommonErrorsLib())
|
||||||
|
{
|
||||||
|
InitializeFixCommonErrorsLine(target, "Go to nikse.com for more info");
|
||||||
|
new FixMissingSpaces().Fix(_subtitle, new EmptyFixCallback());
|
||||||
|
Assert.AreEqual(_subtitle.Paragraphs[0].Text, "Go to nikse.com for more info");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[TestMethod]
|
||||||
|
[DeploymentItem("SubtitleEdit.exe")]
|
||||||
|
public void FixMissingSpacesNoChange7()
|
||||||
|
{
|
||||||
|
using (var target = GetFixCommonErrorsLib())
|
||||||
|
{
|
||||||
|
InitializeFixCommonErrorsLine(target, "Go to nikse.net for more info");
|
||||||
|
new FixMissingSpaces().Fix(_subtitle, new EmptyFixCallback());
|
||||||
|
Assert.AreEqual(_subtitle.Paragraphs[0].Text, "Go to nikse.net for more info");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
[TestMethod]
|
||||||
|
[DeploymentItem("SubtitleEdit.exe")]
|
||||||
|
public void FixMissingSpacesNoChange8()
|
||||||
|
{
|
||||||
|
using (var target = GetFixCommonErrorsLib())
|
||||||
|
{
|
||||||
|
InitializeFixCommonErrorsLine(target, "Go to nikse.org for more info");
|
||||||
|
new FixMissingSpaces().Fix(_subtitle, new EmptyFixCallback());
|
||||||
|
Assert.AreEqual(_subtitle.Paragraphs[0].Text, "Go to nikse.org for more info");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
[DeploymentItem("SubtitleEdit.exe")]
|
[DeploymentItem("SubtitleEdit.exe")]
|
||||||
public void FixMissingSpacesOneLetterPlusDotDotDot()
|
public void FixMissingSpacesOneLetterPlusDotDotDot()
|
||||||
|
Loading…
Reference in New Issue
Block a user