public void LoadUpdatedStyle2() { _wpDoc = Doc2web.Tests.Samples.NumberingTrackChangesUpdatedStyle2.GenerateDocument(); _ps = _wpDoc.MainDocumentPart.Document.Body.Elements <Paragraph>().ToArray(); _instance = new TrackChangesNumberingMapper(_wpDoc); }
public void IsValid_FalseTest() { _instance = new TrackChangesNumberingMapper(null); Assert.IsFalse(_instance.IsValid); }
public void LoadInvalidDocument() { _wpDoc = WordprocessingDocument.Create(new MemoryStream(), DocumentFormat.OpenXml.WordprocessingDocumentType.Document); _instance = new TrackChangesNumberingMapper(_wpDoc); }