public void Seek_WherePositionsDiffer_Throws() { var position = 42; var differingPosition = 17; var sut = new ReadWriteSegregatingStream(fixture.CreateStream_ForSeek(position, SeekOrigin.Begin, position), fixture.CreateStream_ForSeek(position, SeekOrigin.Begin, differingPosition)); sut.Seek(position, SeekOrigin.Begin); }
public void Seek_IsDelegatedToWriteStreamAndReadStream() { var position = 42; var sut = new ReadWriteSegregatingStream(fixture.CreateStream_ForSeek(position, SeekOrigin.Begin, position), fixture.CreateStream_ForSeek(position, SeekOrigin.Begin, position)); Assert.AreEqual(position, sut.Seek(position, SeekOrigin.Begin)); fixture.Verify(); }