Exemplo n.º 1
0
 public void TestInitialize()
 {
     string fileName = "test.pptx";
     correctFileName = CommonTest.GetFileResourcePath(fileName);
     
     powerPointControl = new PowerPointControl();
     powerPointControl.PreparePresentation(correctFileName);
     powerPointControl.StartPresentation();
 }
        public void closePresentationTest()
        {
            PowerPointControl target = new PowerPointControl(); // TODO: Initialize to an appropriate value

            target.PreparePresentation(correctFileName);
            target.StartPresentation();

            try
            {
                target.ClosePresentation();
                Assert.IsTrue(true, "Presentation was closed with no exception");
            }
            catch(Exception e)
            {
                Assert.Fail("Exception : " + e.Message); 
            }

        }