public void GetStream() { var inStream = BinaryUtilities.GenerateRandomStream(1024); var reference = Provider.CreateRandomBinary(stream: inStream); using var outStream = Provider.GetStream(reference); Assert.True(outStream.Length == inStream.Length); inStream.Seek(0, System.IO.SeekOrigin.Begin); Assert.True(outStream.StreamEquals(inStream)); }