Skip to content

Commit

Permalink
Bump to 5.0.0.beta.2, remove nullability warnings in tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Washi1337 committed Oct 26, 2022
1 parent 5a2536c commit 9c23525
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<RepositoryUrl>https://github.com/Washi1337/AsmResolver</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<LangVersion>10</LangVersion>
<Version>5.0.0-beta.1</Version>
<Version>5.0.0-beta.2</Version>
</PropertyGroup>

</Project>
6 changes: 4 additions & 2 deletions test/AsmResolver.PE.Tests/Exports/ExportDirectoryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,24 @@ public void ReadExportNames()
public void ReadExportAddresses()
{
var image = PEImage.FromBytes(Properties.Resources.SimpleDll_Exports);
Assert.NotNull(image.Exports);
Assert.Equal(new[]
{
0x000111DBu,
0x00011320u,
}, image.Exports?.Entries.Select(e => e.Address.Rva));
}, image.Exports.Entries.Select(e => e.Address.Rva));
}

[Fact]
public void ReadOrdinals()
{
var image = PEImage.FromBytes(Properties.Resources.SimpleDll_Exports);
Assert.NotNull(image.Exports);
Assert.Equal(new[]
{
1u,
2u,
}, image.Exports?.Entries.Select(e => e.Ordinal));
}, image.Exports.Entries.Select(e => e.Ordinal));
}

[Fact]
Expand Down

0 comments on commit 9c23525

Please sign in to comment.