public void CreateCache_SkipTest() { var p = DocumentSample2.GenerateParagraph(1, "test", true); var instance = new ParagraphStateCacheFactory(null, null); Assert.IsNull(instance.FindAssociatedNumberingInstance(p)); }
public void FindPNumbringStyleID_BaseOnStyleTest() { var instance = new ParagraphStateCacheFactory( DocumentSample1.GenerateStyles(), null ); var p = DocumentSample1.GenerateParagraph3(); var result = instance.FindAssociatedNumberingInstance(p); Assert.AreEqual(1, result.Value); }
public void FindNubmerindId_NestedElementTest() { var instance = new ParagraphStateCacheFactory( null, null ); var p = DocumentSample1.GenerateParagraph1(); var result = instance.FindAssociatedNumberingInstance(p); Assert.AreEqual(1, result.Value); }