public void ZlibCompressorTest() { byte[] pBufferIn = null; // TODO: 初始化为适当的值 int iOffsetIn = 0; // TODO: 初始化为适当的值 int iSizeIn = 0; // TODO: 初始化为适当的值 byte[] pBufferOut = null; // TODO: 初始化为适当的值 byte[] pBufferOutExpected = null; // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = MemoryZip.ZlibCompressor(pBufferIn, iOffsetIn, iSizeIn, out pBufferOut); Assert.AreEqual(pBufferOutExpected, pBufferOut); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> /// /// </summary> /// <param name="packetReader"></param> /// <returns></returns> public static AuthSession ReadWorldAuthSession(PacketReader packetReader) { AuthSession worldAuthSession = new AuthSession(); worldAuthSession.m_iClientBuild = packetReader.ReadUInt32(); worldAuthSession.m_iUnknown = packetReader.ReadUInt32(); worldAuthSession.m_strAccountName = packetReader.ReadUTF8StringSafe(); worldAuthSession.m_iClientSeed = packetReader.ReadUInt32(); packetReader.ReadBuffer(ref worldAuthSession.m_byteDigest, 0, 20); worldAuthSession.m_RealSize = packetReader.ReadUInt32(); if (worldAuthSession.m_RealSize <= 0) { Debug.WriteLine("AuthSession.ReadWorldAuthSession(...) - worldAuthSession.m_RealSize <= 0 error!"); return(worldAuthSession); } if (packetReader.Position + 5 > packetReader.Size) { Debug.WriteLine("AuthSession.ReadWorldAuthSession(...) - packetReader.Position + 5 > packetReader.Size error!"); return(worldAuthSession); } byte[] outBuffer = null; bool bIsOK = MemoryZip.ZlibDecompressor(packetReader.Buffer, (int)packetReader.Position, (int)packetReader.Size - (int)packetReader.Position, out outBuffer); if (bIsOK == false) { Debug.WriteLine("AuthSession.ReadWorldAuthSession(...) - bIsOK == false error!"); return(worldAuthSession); } worldAuthSession.m_AddonInfo = new Word_AddonInfo(outBuffer); return(worldAuthSession); }
public void MemoryZipConstructorTest() { MemoryZip target = new MemoryZip(); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
public void FreeTest() { MemoryZip.Free(); Assert.Inconclusive("无法验证不返回值的方法。"); }
public void MemoryZipConstructorTest() { MemoryZip target = new MemoryZip(); Assert.Inconclusive( "TODO: 实现用来验证目标的代码" ); }