コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        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);
        }