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

            Assert.AreEqual("4", initial);

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

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

            Assert.AreEqual("2019-11-05", initial);

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

            Assert.AreEqual(effDate, result);
        }