GetCharCount() public method

Calculates the number of characters produced by decoding a sequence of bytes from the specified byte array.
is null. or is less than zero.-or- and do not denote a valid range in .
public GetCharCount ( byte bytes, int index, int count ) : int
bytes byte The byte array containing the sequence of bytes to decode.
index int The index of the first byte to decode.
count int The number of bytes to decode.
return int
示例#1
0
 public void GetCharCountTest()
 {
     ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
     byte[] bytes = null; // TODO: Initialize to an appropriate value
     int index = 0; // TODO: Initialize to an appropriate value
     int count = 0; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.GetCharCount(bytes, index, count);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }