public void ShouldCopyPropertiesToEntity() { var obj = new { EntityValue = "Some Value", IsApproved = true }; var json = obj.ToJSON(); var htmlContent = new HtmlContent(); htmlContent.ImportJson( json ); Assert.AreEqual( obj.EntityValue, htmlContent.EntityValue ); Assert.AreEqual( obj.IsApproved, htmlContent.IsApproved ); }