Beispiel #1
0
        public void VisioPS_NewVisioContainer()
        {
            var doc = VisioPS_Basic_Tests.session.New_VisioDocument();
            var app = VisioPS_Basic_Tests.session.Get_VisioApplication();

            var ver = VisioAutomation.Application.ApplicationHelper.GetVersion(app);

            var cont_doc         = ver.Major >= 15 ? "SDCONT_U.VSSX" : "SDCONT_U.VSS";
            var cont_master_name = ver.Major >= 15 ? "Plain" : "Container 1";
            var rectangle        = "Rectangle";
            var basic_u_vss      = "BASIC_U.VSS";

            var rect = VisioPS_Basic_Tests.session.Get_VisioMaster(rectangle, basic_u_vss);

            VisioPS_Basic_Tests.session.New_VisioShape(PsArray.From(rect), new[] { 1.0, 1.0 });

            // Drop a container on the page... the rectangle we created above should be selected by default.
            // Since it is selected it will be added as a member to the container.

            var container = VisioPS_Basic_Tests.session.New_VisioContainer(cont_master_name, cont_doc);

            Assert.IsNotNull(container);

            VisioPS_Basic_Tests.VisioPS_Close_Visio_Application();
        }
Beispiel #2
0
        public void VisioPS_New_Visio_Document()
        {
            var doc = VisioPS_Basic_Tests.session.New_VisioDocument();

            Assert.IsNotNull(doc);
            VisioPS_Basic_Tests.VisioPS_Close_Visio_Application();
        }