public void ThenTheAndAreValidForImagesAndVideos_(string textItem1, string textItem2, string textItem3) { try { Assert.True(_viewerPage.FindTextinViewerHeader(textItem1)); Assert.True(_viewerPage.FindTextinViewerHeader(textItem2)); Assert.True(_viewerPage.FindTextinViewerHeader(textItem3)); } catch (Exception exception) { Console.Write(@"Either of {0},{1} or {2} were not found in the header of viewer.", textItem1, textItem2, textItem3); throw new Exception("Exception raised:" + exception); } }
public void ThenTheAndAreValidForImagesAndVideos_(string expectedCreated, string expectedLastAccessed, string expectedLastModified) { try { Assert.True(_viewerPage.FindTextinViewerHeader(expectedCreated)); Assert.True(_viewerPage.FindTextinViewerHeader(expectedLastAccessed)); Assert.True(_viewerPage.FindTextinViewerHeader(expectedLastModified)); } catch (Exception exception) { Console.Write(@"Either of {0},{1} or {2} were not found in the viewer.", expectedCreated, expectedLastAccessed, expectedLastModified); throw new Exception("Exception raised:" + exception); } }