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(); }
public void Reads_data_from_the_stream() { PutData(1); parser.ReadAvailable(); A.CallTo(() => stream.Read(null, 0, 0)).WithAnyArguments().MustHaveHappened(); }