public void TexstyleReturnValidHtml() { //Arrange string expectedExceptionMessage = "<h1>Voodoo</h1>\r\n"; var converterUnderTest = new TextileConverter(); //Act string result = converterUnderTest.ScriptToHtml("h1. Voodoo"); //Assert Assert.AreEqual(expectedExceptionMessage, result); }
public void ThrowArgumentNullExceptionWhenContextIsNull() { //Arrange string expectedExceptionMessage = "script"; var converterUnderTest = new TextileConverter(); //Act & Assert var exc = Assert.Throws <ArgumentNullException>(() => converterUnderTest.ScriptToHtml(null)); //Assert StringAssert.Contains(expectedExceptionMessage, exc.Message); }