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"); } }