private HtmlDecode_TextWriterOutput ( string value, string expected ) : void | ||
value | string | |
expected | string | |
리턴 | void |
public static void HtmlDecode_TextWriterOutput(string value, string expected)
{
if(value == null)
expected = string.Empty;
StringWriter output = new StringWriter(CultureInfo.InvariantCulture);
WebUtility.HtmlDecode(value, output);
Assert.Equal(expected, output.ToString());
}