Beispiel #1
0
        public void AfterIndexOfTagException(string text, string tag, int startIndex, Type expectedException)
        {
            // Arrange
            var testee = new HtmlParser();

            // Act + Assert
            Assert.Throws(expectedException, () => testee.AfterIndexOfTag(text, tag, startIndex));
        }
Beispiel #2
0
        public void AfterIndexOfTagSucceed(string text, string tag, int startIndex, int expectedResult)
        {
            // Arrange
            var testee = new HtmlParser();

            // Act
            var actual = testee.AfterIndexOfTag(text, tag, startIndex);

            // Assert
            actual.Should().Be(expectedResult);
        }