Exemple #1
0
        private static void AssertReturnIsEqualToExpected(
            string input, string expected, IModifierFormatter modifierFormatter)
        {
            Paragraph paragraph =
                DocumentContentHelper.GetParagraphFromWordDocument(input);

            var modifierUnitStrategy = new ModifierStrategy(modifierFormatter);

            //  act
            var shuffledParagraph =
                modifierUnitStrategy.ShuffleSentenceUnit(paragraph);

            Assert.That(shuffledParagraph.InnerText,
                        Is.EqualTo(
                            expected));
        }
Exemple #2
0
 public ModifierStrategy(IModifierFormatter modifierFormatter)
 {
     _modifierFormatter = modifierFormatter;
 }