public void FormatAsBold_WhenCalled_ShouldEncloseTheStringWithStrongElement() { HtmlFormater formater = new HtmlFormater(); string content = "abc"; string result = formater.FormatAsBold(content); Assert.That(result, Does.StartWith("<strong>").IgnoreCase); Assert.That(result, Does.EndWith("</strong>").IgnoreCase); Assert.That(result, Does.Contain(content)); }
public void FormatAsBold_WhenCalled_ShouldEncloseTheStringWithStrongElement() { var formatter = new HtmlFormater(); var result = formatter.FormatAsBold("abc"); Assert.Contains("abc", result); Assert.StartsWith("<strong>", result); Assert.EndsWith("</strong>", result); }