public void TestShouldEnforceForTrackedChanges() { XWPFDocument document = XWPFTestDataSamples.OpenSampleDocument("documentProtection_no_protection.docx"); Assert.IsFalse(document.IsEnforcedTrackedChangesProtection()); document.EnforceTrackedChangesProtection(); Assert.IsTrue(document.IsEnforcedTrackedChangesProtection()); }