GetMaxCharCount() публичный Метод

public GetMaxCharCount ( int byteCount ) : int
byteCount int
Результат int
Пример #1
0
 public void NegTest1()
 {
     UTF7Encoding utf7 = new UTF7Encoding();
     int byteCount = -1;
     Assert.Throws<ArgumentOutOfRangeException>(() =>
     {
         int maxCharCount = utf7.GetMaxCharCount(byteCount);
     });
 }
 public void TestMaxCharCount()
 {
         UTF7Encoding UTF7enc = new UTF7Encoding ();
         Assertion.AssertEquals ("UTF #1", 50, UTF7enc.GetMaxCharCount(50));
 }
Пример #3
0
 public void PosTest3()
 {
     int byteCount = Int32.MaxValue;
     UTF7Encoding utf7 = new UTF7Encoding();
     int maxCharCount = utf7.GetMaxCharCount(byteCount);
 }
Пример #4
0
 public void PosTest2()
 {
     int byteCount = 0;
     UTF7Encoding utf7 = new UTF7Encoding();
     int maxCharCount = utf7.GetMaxCharCount(byteCount);
 }
Пример #5
0
 public void PosTest1()
 {
     int byteCount = TestLibrary.Generator.GetInt32(-55);
     UTF7Encoding utf7 = new UTF7Encoding();
     int maxCharCount = utf7.GetMaxCharCount(byteCount);
 }
Пример #6
0
 public void TestMaxCharCount()
 {
         UTF7Encoding UTF7enc = new UTF7Encoding ();
         Assert.AreEqual (50, UTF7enc.GetMaxCharCount(50), "UTF #1");
 }