public void RegisterRun_NewTest() { var output = new CssClass(); var param = new RunClassParam(); _runClassFactory .Build(Arg.Any <RunClassParam>()) .Returns(output); var result = _instance.RegisterRun(param); Assert.AreSame(result, output); }
public void RegisterRun_NewTest() { var output = new CssClass(); _runClassFactory .Build(Arg.Any <RunClassParam>()) .Returns(output); var pPr = BuildPPr(); var rPr = BuildRPr(); var result = _instance.RegisterRun(pPr, rPr, (5, 6)); Assert.AreSame(result, output); var param = RunParams.Single(); Assert.AreEqual("pstyle", param.ParagraphStyleId); Assert.AreEqual("rstyle", param.RunStyleId); Assert.AreEqual(5, param.NumberingId); Assert.AreEqual(6, param.NumberingLevel); Assert.AreSame(rPr, param.InlineProperties); Assert.AreSame(result, _instance.Registrations.Single()); }