public void CanRetrieveStreamWriter()
 {
     _stream.Setup(str => str.CanWrite).Returns(true);
     var streamReaderWriter = new StreamReaderWriter(_stream.Object);
     var writer = streamReaderWriter.Writer;
     _stream.Verify(str => str.CanWrite, Times.Once);
 }
 public void CanRetrieveStreamWriter()
 {
     var stream = new Mock<Stream>();
     stream.Setup(str => str.CanWrite).Returns(true);
     _streamManager.Setup(str => str.Retrieve()).Returns(stream.Object);
     var streamReaderWriter = new StreamReaderWriter(_streamManager.Object);
     var reader = streamReaderWriter.Writer;
     _streamManager.Verify(str => str.Retrieve(), Times.Once);
 }