GetMaxCharCount() public method

public GetMaxCharCount ( int byteCount ) : int
byteCount int
return int
Exemplo n.º 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));
 }
Exemplo n.º 3
0
 public void PosTest3()
 {
     int byteCount = Int32.MaxValue;
     UTF7Encoding utf7 = new UTF7Encoding();
     int maxCharCount = utf7.GetMaxCharCount(byteCount);
 }
Exemplo n.º 4
0
 public void PosTest2()
 {
     int byteCount = 0;
     UTF7Encoding utf7 = new UTF7Encoding();
     int maxCharCount = utf7.GetMaxCharCount(byteCount);
 }
Exemplo n.º 5
0
 public void PosTest1()
 {
     int byteCount = TestLibrary.Generator.GetInt32(-55);
     UTF7Encoding utf7 = new UTF7Encoding();
     int maxCharCount = utf7.GetMaxCharCount(byteCount);
 }
Exemplo n.º 6
0
 public void TestMaxCharCount()
 {
         UTF7Encoding UTF7enc = new UTF7Encoding ();
         Assert.AreEqual (50, UTF7enc.GetMaxCharCount(50), "UTF #1");
 }