コード例 #1
0
        public void FixHyphensAddDash1()
        {
            var splitMerge = new DialogSplitMerge {
                DialogStyle = DialogType.DashBothLinesWithSpace
            };
            var result = splitMerge.FixDashes($"Hi Joe!{Environment.NewLine}- Hi Pete!");

            Assert.AreEqual($"- Hi Joe!{Environment.NewLine}- Hi Pete!", result);
        }
コード例 #2
0
        public void FixHyphensWithQuotes()
        {
            var splitMerge = new DialogSplitMerge {
                DialogStyle = DialogType.DashBothLinesWithSpace
            };
            var result = splitMerge.FixDashes($"\"Into The Woods.\"{Environment.NewLine}- \"Sweeney Todd.\"");

            Assert.AreEqual($"- \"Into The Woods.\"{Environment.NewLine}- \"Sweeney Todd.\"", result);
        }
コード例 #3
0
        public void FixDashesDashSecondLineWithoutSpace1()
        {
            var splitMerge = new DialogSplitMerge {
                DialogStyle = DialogType.DashSecondLineWithoutSpace
            };
            var result = splitMerge.FixDashes($"-How are you?{Environment.NewLine}-I'm fine.");

            Assert.AreEqual($"How are you?{Environment.NewLine}-I'm fine.", result);
        }