using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using NUnit.Framework; using NUnit.Framework.Internal; using TestNinja.Fundamentals; namespace TestNinja.UnitTests.UnitTests { [TestFixture] class HtmlFormatterTests { [Test] public void FormatAsBold_WhenCalled_ShouldEncloseTheStringWithStrongElement() { var formatter = new HtmlFormatter(); var result = formatter.FormatAsBold("abc"); //specific assertion Assert.That(result, Is.EqualTo("abc").IgnoreCase); //more general Assert.That(result, Does.StartWith("")); Assert.That(result, Does.EndWith("")); Assert.That(result, Does.Contain("abc")); } } }