+void memStream::Ctor_InFromOut()
+{
+ wxMemoryOutputStream *pMemOutStream = DoCreateOutStream();
+ pMemOutStream->Write(GetDataBuffer(), DATABUFFER_SIZE);
+ wxMemoryInputStream *pMemInStream = new wxMemoryInputStream(*pMemOutStream);
+ CPPUNIT_ASSERT(pMemInStream->IsOk());
+ CPPUNIT_ASSERT(pMemInStream->GetLength() == pMemOutStream->GetLength());
+ int len = pMemInStream->GetLength();
+ wxStreamBuffer *in = pMemInStream->GetInputStreamBuffer();
+ wxStreamBuffer *out = pMemOutStream->GetOutputStreamBuffer();
+ void *pIn = in->GetBufferStart();
+ void *pOut = out->GetBufferStart();
+ CPPUNIT_ASSERT(pIn != pOut);
+ CPPUNIT_ASSERT(memcmp(pIn, pOut, len) == 0);
+}