using NUnit.Framework;
using System.Threading.Tasks;
namespace CTA.WebForms.Tests.TagConfigs
{
public class HtmlElementTests : TagConfigsTestFixture
{
[Test]
public async Task Body_Is_Properly_Removed()
{
var inputText =
@"
Section
Sub-Section
Content, content, content, content...
";
var expectedOutput =
@"
Section
Sub-Section
Content, content, content, content...
";
expectedOutput = expectedOutput.Trim().Replace("\r\n", "\n");
var output = (await GetConverterOutput(inputText)).Trim().Replace("\r\n", "\n");
Assert.AreEqual(expectedOutput, output);
}
[Test]
public async Task Head_Is_Properly_Removed()
{
var inputText =
@"
My Web Page Title
";
var expectedOutput =
@"@*
My Web Page Title
*@";
expectedOutput = expectedOutput.Trim().Replace("\r\n", "\n");
var output = (await GetConverterOutput(inputText)).Trim().Replace("\r\n", "\n");
Assert.AreEqual(expectedOutput, output);
}
[Test]
public async Task Html_Is_Properly_Removed()
{
var inputText =
@"