Example #1
0
        public void Test_AddendumDraftToPreliminary()
        {
            Report report = CreateReport();

            report.ActivePart.Complete();

            ReportPart addendum = report.AddAddendum();

            addendum.MarkPreliminary();

            // check basics
            Assert.AreEqual(ReportStatus.F, report.Status);                     // report is still considered Final (not Corrected until addendum is complete)
            Assert.AreEqual(2, report.Parts.Count);
            Assert.AreEqual(ReportPartStatus.F, report.Parts[0].Status);
            Assert.AreEqual(ReportPartStatus.P, report.Parts[1].Status);
        }