public void Scrubber_Scrub_IsBase64String_Where_DataHTML_ExpectSameJson() { //------------Setup for test-------------------------- const string HtmlData = "<!DOCTYPE html>\r\n<html lang=\"en\">\r\n <head>\r\n <title>Img Align Attribute<\\/title>\r\n <\\/head>\r\n<body>\r\n <p>This is an example. <img src=\"image.png\" alt=\"Image\" align=\"middle\"> More text right here\r\n <img src=\"image.png\" alt=\"Image\" width=\"100\"\\/>\r\n <\\/body>\r\n<\\/html>"; var jsonBytes = HtmlData.Base64StringToByteArray(); var base64String = jsonBytes.ToBase64String(); //------------Execute Test--------------------------- var scrub = Scrubber.Scrub(base64String); //------------Assert Results------------------------- Assert.AreEqual(HtmlData, scrub); }