1 write to _backingStream
Microsoft.CodeAnalysis.Test.Utilities (1)
Mocks\TestStream.cs (1)
40
_backingStream
= backingStream;
15 references to _backingStream
Microsoft.CodeAnalysis.Test.Utilities (15)
Mocks\TestStream.cs (15)
44
public override bool CanRead => _canRead ??
_backingStream
?.CanRead ?? false;
46
public override bool CanSeek => _canSeek ??
_backingStream
?.CanSeek ?? false;
48
public override bool CanWrite => _canWrite ??
_backingStream
?.CanWrite ?? false;
50
public override long Length => _length ??
_backingStream
?.Length ?? 0;
62
if (
_backingStream
!= null)
64
return
_backingStream
.Position;
79
else if (
_backingStream
!= null)
81
_backingStream
.Position = value;
92
if (
_backingStream
== null)
96
_backingStream
.Flush();
105
else if (
_backingStream
!= null)
107
return
_backingStream
.Read(buffer, offset, count);
127
if (
_backingStream
== null)
131
_backingStream
.SetLength(value);
150
_backingStream
?.Dispose();