private void DoNegAOORTest(ASCIIEncoding ascii, int byteCount) { Assert.Throws<ArgumentOutOfRangeException>(() => { ascii.GetMaxCharCount(byteCount); }); }
private void DoPosTest(ASCIIEncoding ascii, int byteCount, int expectedValue) { int actualValue; ascii = new ASCIIEncoding(); actualValue = ascii.GetMaxCharCount(byteCount); Assert.Equal(expectedValue, actualValue); }