public void Exporters_XrefExporter_getGhostBoxLine() { var docs = GetDocs(); TestExporter exporter = new TestExporter(); exporter.SetDocs(docs); exporter.SetBoxNo(0); Trigger trigger = new Trigger() { Type = Switch.SwitchType.Family }; exporter.SetBoxTrigger(trigger.ToSwitch()); string result = exporter.getGhostBoxLine("DOC000001", String.Empty, 0, false); Assert.AreEqual(@"\Box001\..", result); result = exporter.getGhostBoxLine("DOC000002", String.Empty, 1, false); Assert.AreEqual(@"\Box001\..", result); result = exporter.getGhostBoxLine("DOC000003", String.Empty, 1, false); Assert.AreEqual(@"\Box001\..", result); trigger.Type = Switch.SwitchType.FieldValueChange; trigger.FieldName = "DOCID"; exporter.SetBoxTrigger(trigger.ToSwitch()); exporter.SetBoxNo(0); result = exporter.getGhostBoxLine("DOC000001", String.Empty, 0, false); Assert.AreEqual(@"\Box001\..", result); result = exporter.getGhostBoxLine("DOC000002", String.Empty, 1, false); Assert.AreEqual(@"\Box002\..", result); result = exporter.getGhostBoxLine("DOC000003", String.Empty, 1, false); Assert.AreEqual(@"\Box002\..", result); exporter.SetBoxNo(1); result = exporter.getGhostBoxLine("DOC000002", String.Empty, 1, true); Assert.AreEqual(@"\Box001\..", result); result = exporter.getGhostBoxLine("DOC000002", String.Empty, 1, false); Assert.AreEqual(@"\Box002\..", result); }