Ejemplo n.º 1
0
        public void TestInitialize()
        {
            correctFileName = @"C:\Users\lucioc\Desktop\class_share\Samples\WCF\WcfService1\TestProject1\resources\PEP_posM.pptx";

            powerPointControl = new PowerPointControl();
            powerPointControl.preparePresentation(correctFileName);
            powerPointControl.startPresentation();
        }
 public void prepareNotExistentPresentationTest()
 {
     PowerPointControl target = new PowerPointControl(); // TODO: Initialize to an appropriate value
     string fileName = "wrondfile.dd"; // TODO: Initialize to an appropriate value
     bool expected = false; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.preparePresentation(fileName);
     Assert.AreEqual(expected, actual);
 }
 public void prepareCorrectPresentationTest()
 {
     PowerPointControl target = new PowerPointControl(); // TODO: Initialize to an appropriate value
     string fileName = correctFileName; // TODO: Initialize to an appropriate value
     bool expected = true; // TODO: Initialize to an appropriate value
     bool actual;
     actual = target.preparePresentation(fileName);
     Assert.AreEqual(expected, actual);
 }