public void CleanContents_CallsAppropriateMethods_ReturnsFinalMethodResponse() { // Arrange var contents1 = fixture.Create <string>(); var contents2 = fixture.Create <string>(); var contents3 = fixture.Create <string>(); _parserServiceMock.Setup(s => s.RemoveComments(It.IsAny <string>())).Returns(contents2); _parserServiceMock.Setup(s => s.RemoveQuotes(It.IsAny <string>())).Returns(contents3); // Act var response = _sut.CleanContents(contents1); // Assert _parserServiceMock.Verify(s => s.RemoveComments(It.Is <string>(x => x == contents1)), Times.Once); _parserServiceMock.Verify(s => s.RemoveQuotes(It.Is <string>(x => x == contents2)), Times.Once); Assert.AreEqual(contents3, response); }