Skip to content

MEGs can be built from byte arrays#599

Open
AnakinRaW wants to merge 1 commit into
developfrom
feat/meg-from-stream
Open

MEGs can be built from byte arrays#599
AnakinRaW wants to merge 1 commit into
developfrom
feat/meg-from-stream

Conversation

@AnakinRaW
Copy link
Copy Markdown
Member

No description provided.

[Fact]
public void FromBytes_Empty_OK()
{
var info = MegDataEntryBuilderInfo.FromBytes(Array.Empty<byte>(), "entry.bin");
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[]

}

[Fact]
public void Build_FromBytes_Twice_Works()
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test needed? if so, why not assert content.

[Fact]
public void GetFileData_OriginInfo_Bytes_Empty()
{
var originInfo = new MegDataEntryOriginInfo(Array.Empty<byte>());
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[]

return originInfo.FileInfo.FullName;
if (originInfo.IsEntryReference)
return originInfo.MegFileLocation.DataEntry.Path;
throw new ArgumentException(
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this exception ever possible? Debug Assert maybe?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant