Esempio n. 1
0
        /// <summary>
        /// Create is a Excel file, It's test base file.
        /// </summary>
        /// <param name="createFilePath">Create Excel file path</param>
        /// <returns>Excel file path</returns>
        private void Initialize(string createFilePath)
        {
            GeneratedDocument generatedDocument = new GeneratedDocument();

            generatedDocument.CreatePackage(createFilePath);

            this.Log.Pass("Create Excel file. File path=[{0}]", createFilePath);

            this.testEntities = new TestEntities(createFilePath);
        }
Esempio n. 2
0
        /// <summary>
        /// Create is a Excel file, It's test base file.
        /// </summary>
        /// <param name="createFilePath">Create Excel file path</param>
        /// <returns>Excel file path</returns>
        private void Initialize(string createFilePath)
        {
            try
            {
                GeneratedDocument generatedDocument = new GeneratedDocument();
                generatedDocument.CreatePackage(createFilePath);

                this.Log.Pass("Create Excel file. File path=[{0}]", createFilePath);

                this.testEntities = new TestEntities(createFilePath);
            }
            catch (Exception e)
            {
                this.Log.Fail(string.Format(e.Message + ". :File path={0}", createFilePath));
            }
        }
Esempio n. 3
0
        /// <summary>
        /// Create is a Excel file, It's test base file.
        /// </summary>
        /// <param name="createFilePath">Create Excel file path</param>
        /// <returns>Excel file path</returns>
        private void Initialize(string createFilePath)
        {
            try
            {
                GeneratedDocument generatedDocument = new GeneratedDocument();
                generatedDocument.CreatePackage(createFilePath);

                this.Log.Pass("Create Excel file. File path=[{0}]", createFilePath);

                this.testEntities = new TestEntities(createFilePath);
            }
            catch (Exception e)
            {
                this.Log.Fail(string.Format(e.Message + ". :File path={0}", createFilePath));
            }
        }
Esempio n. 4
0
        public void TimeLineEditAttributes()
        {
            using (var ms = new MemoryStream())
            {
                GeneratedDocument.CreatePackage(ms);

                var testEntities = new TestEntities(ms);
                testEntities.EditAttributes(ms);
                testEntities.VerifyEditedAttribute(ms);

                testEntities.DeleteTimelineStyle(ms);
                testEntities.VerifyDeletedTimelineStyle(ms);

                testEntities.AddTimelineStyle(ms);
                testEntities.VerifyAddedTimelineStyle(ms);
            }
        }