public void Register_NewParagraphTest() { var output = new CssClass(); var param = new ParagraphClassParam(); _paragraphClassFactory.Build(param).Returns(output); var result = _instance.RegisterParagraph(param); Assert.AreSame(result, output); }
public void Register_NewParagraphTest() { var output = new CssClass(); _paragraphClassFactory .Build(Arg.Any <ParagraphClassParam>()) .Returns(output); var pPr = BuildPPr(); var result = _instance.RegisterParagraph(pPr, (5, 6)); Assert.AreSame(result, output); var param = ParagraphParams.Single(); Assert.AreSame(pPr, param.InlineProperties); Assert.AreEqual("pstyle", param.StyleId); Assert.AreEqual(5, param.NumberingId); Assert.AreEqual(6, param.NumberingLevel); Assert.AreSame(result, _instance.Registrations.Single()); }