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 closeNotStartedPresentationTest() { PowerPointControl target = new PowerPointControl(); // TODO: Initialize to an appropriate value bool expected = false; // TODO: Initialize to an appropriate value bool actual; actual = target.closePresentation(); Assert.AreEqual(expected, actual); }
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); }
public void TestInitialize() { string fileName = "test.pptx"; correctFileName = CommonTest.GetFileResourcePath(fileName); powerPointControl = new PowerPointControl(); powerPointControl.PreparePresentation(correctFileName); powerPointControl.StartPresentation(); }
private void defaultInitializationOfStaticFields() { fileManager = new ServiceFileManager(); KinectWindow = new KinectWindowControl(); ImageForm = new ImageFormControl(); PresentationControl = new PowerPointControl(); mainWindow = new DesktopMainWindowControl(); urlManager = new ServiceUrlManager(); }
public void prepareNotExistentPresentationTest() { PowerPointControl target = new PowerPointControl(); string fileName = "wrondfile.dd"; try { target.PreparePresentation(fileName); Assert.Fail("No exception was throw with a wrong name"); } catch (Exception e) { Assert.IsTrue(true, "Exeption was throw " + e.Message ); } }
public void prepareCorrectPresentationTest() { PowerPointControl target = new PowerPointControl(); string fileName = correctFileName; try { target.PreparePresentation(fileName); Assert.IsTrue(true); } catch(Exception e) { Assert.Fail("Exeption" + e.Message); } }
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); } }
public void closeNotStartedPresentationTest() { PowerPointControl target = new PowerPointControl(); // TODO: Initialize to an appropriate value try { target.ClosePresentation(); Assert.Fail("Non existent presentation was closed with no exception"); } catch (Exception e) { Assert.IsTrue(true, "Exception was correctly throw for a bad non existent presentation"); } }