public void FixSpacesDashSecondLineWithoutSpace1() { var splitMerge = new DialogSplitMerge { DialogStyle = DialogType.DashSecondLineWithoutSpace }; var result = splitMerge.FixSpaces($"How are you?{Environment.NewLine}- I'm fine.'"); Assert.AreEqual($"How are you?{Environment.NewLine}-I'm fine.'", result); }
public void FixSpacesDashBothLinesWithSpace3() { var splitMerge = new DialogSplitMerge { DialogStyle = DialogType.DashBothLinesWithSpace }; var result = splitMerge.FixSpaces($"{{\\an8}}-How are you?{Environment.NewLine}{{\\an8}}-I'm fine."); Assert.AreEqual($"{{\\an8}}- How are you?{Environment.NewLine}{{\\an8}}- I'm fine.", result); }
public void FixSpacesDashBothLinesWithSpace4() { var splitMerge = new DialogSplitMerge { DialogStyle = DialogType.DashBothLinesWithSpace }; var result = splitMerge.FixSpaces($"<i>-How are you?</i>{Environment.NewLine}<i>-I'm fine.</i>"); Assert.AreEqual($"<i>- How are you?</i>{Environment.NewLine}<i>- I'm fine.</i>", result); }
public void FixHyphensFirstLineParentheses() { var splitMerge = new DialogSplitMerge { DialogStyle = DialogType.DashBothLinesWithSpace }; var result = splitMerge.FixSpaces($"-(howling){Environment.NewLine}-I see what's on the other side."); Assert.AreEqual($"- (howling){Environment.NewLine}- I see what's on the other side.", result); }