Ejemplo n.º 1
0
        public void LoadTest1()
        {
            OPF    target = new OPF();    // TODO: Initialize to an appropriate value
            string uri    = string.Empty; // TODO: Initialize to an appropriate value

            target.Load(uri);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 2
0
        public void LoadTest()
        {
            OPF       target = new OPF(); // TODO: Initialize to an appropriate value
            Container con    = null;      // TODO: Initialize to an appropriate value

            target.Load(con);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 3
0
        public void LoadTest2()
        {
            OPF       target = new OPF(); // TODO: Initialize to an appropriate value
            XDocument xd     = null;      // TODO: Initialize to an appropriate value

            target.Load(xd);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }
Ejemplo n.º 4
0
        public void ParseTest()
        {
            System.Reflection.Assembly asm = Assembly.GetExecutingAssembly();
            XDocument xd = XDocument.Load(new StreamReader(
                                              asm.GetManifestResourceStream("Crimson.Catalog.WebSite.Tests.Data.EPub._1023.epub._1023.content.opf")));
            OPF target = new OPF();

            target.Parse(xd.ToString());
            Assert.IsNull(target.Manifest);
        }
Ejemplo n.º 5
0
        //private void button1_Click(object sender, EventArgs e)
        //{
        //    if (DateTime.Value.Year == 2018)
        //    {
        //        MessageBox.Show(DateTime.Value.ToString());
        //    }

        //    if(DateTime.Value.Year == 2017)
        //    {
        //        MessageBox.Show("2017");
        //    }
        //}

        private void LoadIMG_Button_Click(object sender, EventArgs e)
        {
            if (OPF.ShowDialog() == DialogResult.OK)
            {
                foreach (string file in OPF.FileNames)
                {
                    ImageBox.Image = Image.FromFile("" + file + "");
                }
            }
        }
Ejemplo n.º 6
0
        public void GuideTest()
        {
            OPF   target   = new OPF(); // TODO: Initialize to an appropriate value
            Guide expected = null;      // TODO: Initialize to an appropriate value
            Guide actual;

            target.Guide = expected;
            actual       = target.Guide;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 7
0
        public void ManifestTest()
        {
            OPF target = new OPF();                                   // TODO: Initialize to an appropriate value

            Reader.EPub.OpenPackagingFormat.Manifest expected = null; // TODO: Initialize to an appropriate val
            Reader.EPub.OpenPackagingFormat.Manifest actual;
            target.Manifest = expected;
            actual          = target.Manifest;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 8
0
        public void NavigationCenterExtendedTest()
        {
            OPF target   = new OPF(); // TODO: Initialize to an appropriate value
            NCX expected = null;      // TODO: Initialize to an appropriate value
            NCX actual;

            target.NavigationCenterExtended = expected;
            actual = target.NavigationCenterExtended;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 9
0
        public void UniqueIdentifierTest()
        {
            OPF    target   = new OPF();    // TODO: Initialize to an appropriate value
            string expected = string.Empty; // TODO: Initialize to an appropriate value
            string actual;

            target.UniqueIdentifier = expected;
            actual = target.UniqueIdentifier;
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Ejemplo n.º 10
0
        public void OPFConstructorTest()
        {
            OPF target = new OPF();

            Assert.Inconclusive("TODO: Implement code to verify target");
        }