Skip to content
New issue

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

test: added example of docx that does not match current magic numbers #37

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions FileTypeChecker.Tests/FileTypeChecker.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@
<None Update="files\365-doc-empty.docx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="files\365-issue311.docx">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="files\test-offset.mp4">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
Expand Down
1 change: 1 addition & 0 deletions FileTypeChecker.Tests/FileTypeValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ public void Is_ShouldReturnFalseIfTypesDidNotMatch()
[TestCase("test.ico", typeof(Icon))]
[TestCase("365-doc.docx", typeof(MicrosoftOffice365Document))]
[TestCase("365-doc-empty.docx", typeof(MicrosoftOffice365Document))]
[TestCase("365-issue311.docx", typeof(MicrosoftOffice365Document))]
[TestCase("testwin10.zip", typeof(ZipFile))]
[TestCase("test.webp", typeof(Webp))]
[TestCase("sample.heic", typeof(HighEfficiencyImageFile))]
Expand Down
Binary file added FileTypeChecker.Tests/files/365-issue311.docx
Binary file not shown.