Assert.That(result,Is.EqualTo("this is bold para OK!"));
}
[Test]
publicvoidRemoveHtmlMoreTags()
{
// Good 'ol Ali G ;)
varhtml="<p><strong><em>\"Ali G: Rezurection\"</em></strong> includes every episode of <em>Da Ali G Show</em> with new, original introductions by star, creator/writer Sacha Baron Cohen, along with the BAFTA(R) Award-winning English episodes of <em>Da Ali G Show</em> which have never aired on American television and <em>The Best of Ali G</em>.</p>";
varresult=html.RemoveHtml();
Assert.That(result,Is.Not.Null);
Assert.That(result,Is.EqualTo("\"Ali G: Rezurection\" includes every episode of Da Ali G Show with new, original introductions by star, creator/writer Sacha Baron Cohen, along with the BAFTA(R) Award-winning English episodes of Da Ali G Show which have never aired on American television and The Best of Ali G."));
Assert.Throws<ApplicationSettingsException>(()=>Checker.IsAvailable("title"),"We should be throwing an exception since we cannot talk to the services.");
Assert.Throws<ApplicationSettingsException>(()=>Checker.IsAvailable("title", "2013"),"We should be throwing an exception since we cannot talk to the services.");