GetMaxCharCount() public method

Calculates the maximum number of characters produced by decoding the specified number of bytes.
is less than zero.
public GetMaxCharCount ( int byteCount ) : int
byteCount int The number of bytes to decode.
return int
示例#1
0
 public void GetMaxCharCountTest()
 {
     ASCIIEncoding target = new ASCIIEncoding(); // TODO: Initialize to an appropriate value
     int byteCount = 0; // TODO: Initialize to an appropriate value
     int expected = 0; // TODO: Initialize to an appropriate value
     int actual;
     actual = target.GetMaxCharCount(byteCount);
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }