コード例 #1
0
        public void CommentExPeople01ReadElement()
        {
            string originalFilepath = this.GetTestFilePath(this.generateDocumentFilePath);

            TestEntities testEntities = new TestEntities();

            testEntities.ReadElements(originalFilepath, this.Log);
        }
コード例 #2
0
        public void CommentExPeople01ReadElement()
        {
            this.MyTestInitialize(TestContext.GetCurrentMethod());

            string originalFilepath = this.GetTestFilePath(this.generateDocumentFilePath);

            TestEntities testEntities = new TestEntities();

            testEntities.ReadElements(originalFilepath, this.Log);
        }
コード例 #3
0
        public void CommentExPeople01ReadElement()
        {
            using (var stream = new MemoryStream())
            {
                GeneratedDocument generatedDocument = new GeneratedDocument();
                generatedDocument.CreatePackage(stream);

                TestEntities testEntities = new TestEntities();
                testEntities.ReadElements(stream, Log);
            }
        }
コード例 #4
0
        public void CommentExPeople02EditElement()
        {
            string originalFilepath = GetTestFilePath(generateDocumentFilePath);
            string editFilePath     = GetTestFilePath(editedDocumentFilePath);

            System.IO.File.Copy(originalFilepath, editFilePath, true);

            TestEntities testEntities = new TestEntities();

            testEntities.EditElements(editFilePath, Log);
            testEntities.VerifyElements(editFilePath, Log);
        }
コード例 #5
0
        public void CommentExPeople02EditElement()
        {
            this.MyTestInitialize(TestContext.GetCurrentMethod());

            string originalFilepath = this.GetTestFilePath(this.generateDocumentFilePath);
            string editFilePath     = this.GetTestFilePath(this.editedDocumentFilePath);

            System.IO.File.Copy(originalFilepath, editFilePath, true);

            TestEntities testEntities = new TestEntities();

            testEntities.EditElements(editFilePath, this.Log);
            testEntities.VerifyElements(editFilePath, this.Log);
        }
コード例 #6
0
        public void CommentExPeople01ReadElement()
        {
            this.MyTestInitialize(TestContext.GetCurrentMethod());
            try
            {
                string originalFilepath = this.GetTestFilePath(this.generateDocumentFilePath);

                TestEntities testEntities = new TestEntities();
                testEntities.ReadElements(originalFilepath, this.Log);
            }
            catch (Exception e)
            {
                this.Log.Fail(e.Message);
            }
        }
コード例 #7
0
        public void CommentExPeople02EditElement()
        {
            this.MyTestInitialize(TestContext.GetCurrentMethod());
            try
            {
                string originalFilepath = this.GetTestFilePath(this.generateDocumentFilePath);
                string editFilePath = this.GetTestFilePath(this.editeDocumentFilePath);

                System.IO.File.Copy(originalFilepath, editFilePath, true);

                TestEntities testEntities = new TestEntities();
                testEntities.EditElements(editFilePath, this.Log);
                testEntities.VerifyElements(editFilePath, this.Log);
            }
            catch (Exception e)
            {
                this.Log.Fail(e.Message);
            }
        }