public void ShouldReadAndSerializeDataFromStream()
 {
     PutData(1, 2);
     streamReader.ReadAvailable();
     A.CallTo(() => stream.Read(null, 0, 0)).WithAnyArguments().MustHaveHappened();
     A.CallTo(() => deserializer.Deserialize(null, 0, 0)).WithAnyArguments().MustHaveHappened();
 }
Beispiel #2
0
        public void Reads_data_from_the_stream()
        {
            PutData(1);

            parser.ReadAvailable();

            A.CallTo(() => stream.Read(null, 0, 0)).WithAnyArguments().MustHaveHappened();
        }