private UrlEncodeToBytes_ExcludeIrrelevantData ( string value, int offset, int count, string expected ) : void | ||
value | string | |
offset | int | |
count | int | |
expected | string | |
리턴 | void |
public static void UrlEncodeToBytes_ExcludeIrrelevantData(string value, int offset, int count, string expected)
{
byte[] input = Encoding.UTF8.GetBytes(value);
byte[] encoded = WebUtility.UrlEncodeToBytes(input, offset, count);
string actual = Encoding.UTF8.GetString(encoded);
Assert.Equal(expected, actual);
}