private void CreatePrepareAndVerifyRowNodeString_OnVariousParameters_ReturnsCorrectResult(string html, bool ssTableRowCorrect, string expected) { _stringParserMock.Setup(mock => mock.GetXpath(It.IsAny <string>())).Returns(html); _stringParserMock.Setup(mock => mock.IsTableRowCorrect(It.IsAny <string>())).Returns(ssTableRowCorrect); _stringParserMock.Setup(mock => mock.SplitTableRow(It.IsAny <string>())).Returns("result"); string result = _service.CreatePrepareAndVerifyRowNodeString(_html, "method_name"); Assert.Equal(expected, result); }