+ CPPUNIT_ASSERT_EQUAL(1, stream_in.LastRead());
+ }
+
+ void Input_CanRead()
+ {
+ CleanupHelper cleanup(this);
+ TStreamIn &stream_in = CreateInStream();
+
+ CPPUNIT_ASSERT( stream_in.CanRead() );
+
+ // read the entire contents
+ (void)stream_in.Read(CreateOutStream());
+
+ CPPUNIT_ASSERT( !stream_in.CanRead() );