Exemple #1
0
        public void GetHtmlDocument_ShouldReturnCorrectValue(
            SeleniumReporter sut,
            [Greedy] XmlDocumentObserver expectedDocumentObserver,
            INamed named)
        {
            // arrange

            SetupObserver(expectedDocumentObserver, named);
            SetupObserver(sut.XmlDocumentObserver, named);
            var expected = expectedDocumentObserver.GetHtmlDocument();
            // act
            var actual = sut.GetHtmlDocument();

            // assert
            actual.Should().Be(expected);
        }
 /// <inheritdoc />
 public string GetHtmlDocument()
 {
     return(XmlDocumentObserver.GetHtmlDocument());
 }