We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug DataStream.Compare returns false when it should return true when comparing a Stream with itself.
To Reproduce Using Yarhl 4.0.0-preview.157.
public class TestObject : IBinary { public TestObject(DataStream fileStream) { Stream = fileStream; } public DataStream Stream { get; set; } } public void Test(){ var streamA = new DataStream(); streamA.Write(new byte[] { 1, 2, 3 }, 0, 3); var alarFile = new TestObject(streamA); var streamB = new DataStream(); streamB.Write(new byte[] { 2, 3, 4 }, 0, 3); alarFile.Stream = streamB; alarFile.Stream.Compare(streamB).Should().BeTrue(); }
Expected behavior That test should pass. Compare() should return true.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
pleonex
Successfully merging a pull request may close this issue.
Describe the bug
DataStream.Compare returns false when it should return true when comparing a Stream with itself.
To Reproduce
Using Yarhl 4.0.0-preview.157.
Expected behavior
That test should pass. Compare() should return true.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: