public void AttachmentGroupAfterCalcCycle() { var LTaxData = FApplication.GetCurrentTaxData(); Assert.IsNotNull(LTaxData, "Could not get the current tax data"); var LNoteGroup = LTaxData.GetAttachmentGroup(0); Assert.IsNotNull(LNoteGroup, "Could not get the current note group"); var LNoteGroupName = LNoteGroup.GetName(true); Assert.IsFalse(string.IsNullOrEmpty(LNoteGroupName), "Note group is null or empty"); var LSchedulerGroup = LTaxData.GetAttachmentGroup(1); Assert.IsNotNull(LSchedulerGroup, "Could not get the current scheduler group"); var LSchedulerGroupName = LSchedulerGroup.GetName(true); Assert.IsFalse(string.IsNullOrEmpty(LSchedulerGroupName), "Scheduler group is null or empty"); FClientFileManager.GetCurrentClientFile().RunCalcForAllReturns(); Assert.AreEqual(LNoteGroupName, LNoteGroup.GetName(true)); Assert.AreEqual(LSchedulerGroupName, LSchedulerGroup.GetName(true)); }
public void GetCurrentTaxData() { Assert.IsNotNull(FApplication.GetCurrentTaxData()); }