public void CleanSummaryContent_ReplacesSeeAlsoCrefs() { // Arrange var summary = "Accepts <seealso cref=\"T:System.Collections.List{System.String}\" />s"; // Act var cleanedSummary = DefaultTagHelperTooltipFactory.CleanSummaryContent(summary); // Assert Assert.Equal("Accepts `List<System.String>`s", cleanedSummary); }
public void CleanSummaryContent_TrimsSurroundingWhitespace() { // Arrange var summary = @" Hello World "; // Act var cleanedSummary = DefaultTagHelperTooltipFactory.CleanSummaryContent(summary); // Assert Assert.Equal(@"Hello World", cleanedSummary); }