public void Exporters_XrefExporter_getEndFlag()
        {
            var     docs     = GetDocs();
            int     docIndex = 1;
            int     imgIndex = 0;
            Trigger trigger  = new Trigger();

            trigger.Type              = Switch.SwitchType.FieldValueChange;
            trigger.FieldName         = "DOCTYPE";
            trigger.FieldChangeOption = Switch.ValueChangeOption.None;
            TestExporter exporter = new TestExporter();

            exporter.SetDocs(docs);
            exporter.SetWaitingForFlag(true);
            Assert.IsTrue(exporter.getCodeEndFlag(docIndex, imgIndex, trigger.ToSwitch()));
            Assert.IsTrue(exporter.getGroupEndFlag(docIndex, imgIndex, trigger.ToSwitch()));
            exporter.SetWaitingForFlag(false);
            Assert.IsFalse(exporter.getCodeEndFlag(docIndex, imgIndex, trigger.ToSwitch()));
            Assert.IsFalse(exporter.getGroupEndFlag(docIndex, imgIndex, trigger.ToSwitch()));
        }