public void HideUnvisitedSyncSuccessful()
        {
            PplFeatures.SynchronizeAgenda();

            // Duplicate template slide and delete original template slide. It should use the duplicate as the new template slide.
            var firstSlide = PpOperations.SelectSlide(1);

            PpOperations.SelectShape("PptLabsAgenda_&^@ContentShape_&^@2015061916283877850").TextFrame2.TextRange.Paragraphs[3].Text = " ";

            PplFeatures.SynchronizeAgenda();

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesTextAfterSyncHideUnvisited.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);

            PpOperations.SelectShape("PptLabsAgenda_&^@ContentShape_&^@2015061916283877850").TextFrame2.TextRange.Paragraphs[3].Text = "Readd bullet format";

            PplFeatures.SynchronizeAgenda();

            actualSlides   = PpOperations.FetchCurrentPresentationData();
            expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesTextAfterSyncUnhideUnvisited.pptx"));
            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
        public void BeamSyncSuccessful()
        {
            // TODO: Is there really no way to programmatically select multiple slides at once?
            // TODO: Ideally, I want to select the slides 5,6,7,8 together and apply Synchronise Agenda on them

            ClickOnSlideThumbnailsPanel();
            PpOperations.SelectSlide(5);
            MessageBoxUtil.ExpectMessageBoxWillPopUp(
                "Reorganise Sidebar",
                "The sections have been changed. Do you wish to reorganise the items in the sidebar?",
                PplFeatures.SynchronizeAgenda,
                "&Yes");

            PpOperations.SelectSlide(6);
            PplFeatures.SynchronizeAgenda();

            ClickOnSlideThumbnailsPanel();
            PpOperations.SelectSlide(8);
            PplFeatures.SynchronizeAgenda();

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesBeamAfterSync.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
 public void VisualSyncSuccessful()
 {
     PplFeatures.SynchronizeAgenda();
     System.Collections.Generic.List <TestInterface.ISlideData> actualSlides   = PpOperations.FetchCurrentPresentationData();
     System.Collections.Generic.List <TestInterface.ISlideData> expectedSlides = PpOperations.FetchPresentationData(
         PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesVisualAfterSync.pptx"));
     PresentationUtil.AssertEqual(expectedSlides, actualSlides);
 }
예제 #4
0
        public void VisualSyncSuccessful()
        {
            PplFeatures.SynchronizeAgenda();
            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesVisualAfterSync.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
예제 #5
0
        private static void TestRemoveAgenda()
        {
            PplFeatures.RemoveAgenda();

            System.Collections.Generic.List <TestInterface.ISlideData> actualSlides   = PpOperations.FetchCurrentPresentationData();
            System.Collections.Generic.List <TestInterface.ISlideData> expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesDefault.pptx"));
            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
예제 #6
0
        private static void TestGenerateVisualAgenda()
        {
            MessageBoxUtil.ExpectMessageBoxWillPopUp(AgendaExistsTitle, AgendaExistsContent,
                                                     PplFeatures.GenerateVisualAgenda, buttonNameToClick: "OK");

            System.Collections.Generic.List <TestInterface.ISlideData> actualSlides   = PpOperations.FetchCurrentPresentationData();
            System.Collections.Generic.List <TestInterface.ISlideData> expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesVisualDefault.pptx"));
            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
예제 #7
0
        private static void TestRemoveAgenda()
        {
            PplFeatures.RemoveAgenda();

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaSlidesDefault.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
예제 #8
0
 private void TestImportLibraryAndShape(IShapesLabController shapesLab)
 {
     shapesLab.ImportLibrary(
         PathUtil.GetDocTestPresentationPath("ShapesLab\\LibraryToImport.pptlabsshapes"));
     shapesLab.ImportLibrary(
         PathUtil.GetDocTestPresentationPath("ShapesLab\\ShapeToImport.pptlabsshape"));
     System.Collections.Generic.List <ISlideData> actualShapeDataAfterImport = shapesLab.FetchShapeGalleryPresentationData();
     System.Collections.Generic.List <ISlideData> expShapeDataAfterImport    = PpOperations.FetchPresentationData(
         PathUtil.GetDocTestPresentationPath(ExpectedShapeGalleryFileName()));
     PresentationUtil.AssertEqual(expShapeDataAfterImport, actualShapeDataAfterImport);
 }
        private static void TestGenerateTextAgendaWithSlideNumbers()
        {
            PpOperations.ShowAllSlideNumbers();
            PplFeatures.GenerateTextAgenda();

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesTextWithSlideNumberDefault.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
        private static void TestGenerateVisualAgendaWithSlideNumbers()
        {
            PpOperations.ShowAllSlideNumbers();
            MessageBoxUtil.ExpectMessageBoxWillPopUp(AgendaExistsTitle, AgendaExistsContent,
                                                     PplFeatures.GenerateVisualAgenda, buttonNameToClick: "OK");

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesVisualWithSlideNumberDefault.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
예제 #11
0
        private static void TestGenerateBeamAgenda()
        {
            PpOperations.SelectSlide(1);
            MessageBoxUtil.ExpectMessageBoxWillPopUp(AgendaExistsTitle, AgendaExistsContent,
                                                     PplFeatures.GenerateBeamAgenda, buttonNameToClick: "OK");

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaSlidesBeamDefault.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
        public void TextSyncSuccessful()
        {
            PplFeatures.SynchronizeAgenda();

            // Duplicate template slide and delete original template slide. It should use the duplicate as the new template slide.
            Microsoft.Office.Interop.PowerPoint.Slide firstSlide = PpOperations.SelectSlide(1);
            PpOperations.SelectShape("PPTTemplateMarker").Delete();
            firstSlide.Duplicate();
            firstSlide.Delete();

            PplFeatures.SynchronizeAgenda();

            System.Collections.Generic.List <TestInterface.ISlideData> actualSlides   = PpOperations.FetchCurrentPresentationData();
            System.Collections.Generic.List <TestInterface.ISlideData> expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesTextAfterSync.pptx"));
            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }
        public void TextSyncSuccessful()
        {
            PplFeatures.SynchronizeAgenda();

            // Duplicate template slide and delete original template slide. It should use the duplicate as the new template slide.
            var firstSlide = PpOperations.SelectSlide(1);

            PpOperations.SelectShape("PPTTemplateMarker").Delete();
            firstSlide.Duplicate();
            firstSlide.Delete();

            PplFeatures.SynchronizeAgenda();

            var actualSlides   = PpOperations.FetchCurrentPresentationData();
            var expectedSlides = PpOperations.FetchPresentationData(
                PathUtil.GetDocTestPresentationPath("AgendaLab\\AgendaSlidesTextAfterSync.pptx"));

            PresentationUtil.AssertEqual(expectedSlides, actualSlides);
        }