Ejemplo n.º 1
0
        private Stream ServerResponseToStream(ReadResponseMessage responseMessage)
        {
            ReadingStream           responseStream = new ReadingStream();
            FarmerMessageSerializer serializer     = new FarmerMessageSerializer();

            serializer.Serialize(responseStream, responseMessage);

            responseStream.Seek(0, SeekOrigin.Begin);
            responseStream.StopProcessingWrites();

            return(responseStream);
        }
Ejemplo n.º 2
0
 public void SeekThrows()
 {
     Assert.Throws <NotSupportedException>(() => ReadingStream.Seek(0, SeekOrigin.Begin));
 }