コード例 #1
0
ファイル: ExcelDocTests.cs プロジェクト: rdemint/qmsHero
        public void RevisionTest()
        {
            string   rev     = "20";
            var      fixture = new FixtureUtil();
            ExcelDoc doc     = new ExcelDoc(fixture.ExcelSample);
            var      state   = doc.Inspect();
            var      initial = state.Revision.Value;

            Assert.AreEqual("2", initial);

            state.Revision.Value = rev;
            var targetDoc = doc.Process(state, fixture.ProcessingDir);
            var result    = (string)targetDoc.Inspect().Revision.Value;

            Assert.AreEqual(rev, result);
        }
コード例 #2
0
ファイル: ExcelDocTests.cs プロジェクト: rdemint/qmsHero
        public void EffectiveDateTest()
        {
            string   effDate = "2020-04-12";
            var      fixture = new FixtureUtil();
            ExcelDoc doc     = new ExcelDoc(fixture.ExcelSample);
            var      state   = doc.Inspect();
            var      initial = state.EffectiveDate.Value;

            Assert.AreEqual("2018-11-26", initial);

            state.EffectiveDate.Value = effDate;
            var targetDoc = doc.Process(state, fixture.ProcessingDir);
            var result    = (string)targetDoc.Inspect().EffectiveDate.Value;

            Assert.AreEqual(effDate, result);
        }