public void CanEmbedAndGetBodyOnly(string pathToFile, string expectedImageStringFragment) { var content = sut.InlineEmbedImagesAndReturnBodyOnly(pathToFile); Assert.True(new Regex(expectedImageStringFragment).Matches(content).Count == 1); }