public void TestMethodMax100M() { byte[] buffer = new byte[1024 * 1024 * 10]; var result = ObjProvider.Add("key100M", buffer); Assert.AreEqual(true, result); }
public void TestMethodMaxLimit1M()//membercache最大不超过1M { byte[] buffer = new byte[1024 * 1023]; var result = ObjProvider.Add("key2M", buffer); Assert.AreEqual(true, result); }
public void TestMethodMaxLimit05M()//membercache最大不超过1M { byte[] buffer = new byte[1024 * 512]; for (int i = 0; i < 10; i++) { Assert.AreEqual(true, ObjProvider.Add("key2M" + i, buffer, 2000 * i + 2000)); } }