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