コード例 #1
0
        public void CloseDocumentTest()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor(); // TODO: Initialize to an appropriate value

            target.CloseDocument();
            Assert.IsNull(target.pdfDocument);
        }
コード例 #2
0
        public void PDFExportSectionTest()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor(); // TODO: Initialize to an appropriate value
            string    basedName        = string.Empty;              // TODO: Initialize to an appropriate value
            ONSection section          = null;                      // TODO: Initialize to an appropriate value

            target.PDFExportSection(basedName, section);
        }
コード例 #3
0
        public void PDFCombineAllTest()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor();
            string     basedName       = string.Empty;
            ONNotebook notebook        = null;

            target.PDFCombineAll(basedName, notebook);
        }
コード例 #4
0
        public void PDFCombinePageTest()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor();
            PdfOutline          parent = null;
            ONPage page = null;

            target.PDFCombinePage(parent, page);
        }
コード例 #5
0
        public void PDFCombineSectionTest()
        {
            Export2PDF_Accessor target  = new Export2PDF_Accessor();
            PdfOutline          parent  = null;
            ONSection           section = null;

            target.PDFCombineSection(parent, section);
        }
コード例 #6
0
        public void PDFExportPageTest()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor();
            string basedName           = string.Empty;
            ONPage page = null;

            target.PDFExportPage(basedName, page);
        }
コード例 #7
0
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for PDFMergeAll
        ///</summary>
        public void PDFMergeAllTestHelper <T>()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor(); // TODO: Initialize to an appropriate value
            string    basedName        = string.Empty;              // TODO: Initialize to an appropriate value
            ONSection sec = null;                                   // TODO: Initialize to an appropriate value

            target.PDFMergeAll(basedName, sec);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
コード例 #8
0
        public void InitDocumentTest()
        {
            Export2PDF_Accessor target = new Export2PDF_Accessor(); // TODO: Initialize to an appropriate value
            string pathName            = string.Empty;              // TODO: Initialize to an appropriate value
            bool   expected            = false;                     // TODO: Initialize to an appropriate value
            bool   actual;

            actual = target.InitDocument(pathName);
            Assert.AreEqual(expected, actual);
        }