Compare commits

...

34 Commits
3.4.4 ... 3.5.0

Author SHA1 Message Date
Matt Nadareski
05bddd6005 Bump version 2025-11-25 08:40:36 -05:00
Matt Nadareski
777232301d Update Serialization to 2.2.1 2025-11-25 07:56:38 -05:00
Matt Nadareski
41a705c343 Add support for .NET 10 2025-11-24 11:57:17 -05:00
HeroponRikiBestest
805beb3418 Improve starforce keyless detection (#396) 2025-11-17 22:00:44 -05:00
HeroponRikiBestest
cc7592e07a consistent alpharom stylization (#395)
I forgot that Alpha-ROM is stylized with a dash. Mainly PRing so it'll also be consistent with how it already is on redump.
2025-11-17 12:29:26 -05:00
HeroponRikiBestest
41ad8adf6e Small TAGES and AlphaROM improvements (#394)
* Small improvement to early TAGES detection to eliminate small handful of false positives. Also threw in a note about alpharom

* Improve alpharom handling

* Initial round of fixes
2025-11-16 15:55:32 -05:00
HeroponRikiBestest
201badd434 Update RC dictionary name now that one of the entries is in redump (#393) 2025-11-14 07:28:46 -05:00
Matt Nadareski
f58003b3fc Ensure JSON added to help print 2025-11-13 13:59:25 -05:00
Matt Nadareski
ff8976a67a Restore warning not as error 2025-11-10 13:09:49 -05:00
Matt Nadareski
dc968c2d15 Bump version 2025-11-10 13:07:37 -05:00
Matt Nadareski
3726abb209 Cleanup 2025-11-10 12:57:08 -05:00
HeroponRikiBestest
ac8dfb833c Fixes last minute issue with json parsing (#392)
* fix

* add comment back

* slight simplification

* Remove newline

* Remove newline

* Fix
2025-11-10 12:45:56 -05:00
Matt Nadareski
f0673046dc Minor cleanup from last commit 2025-11-10 09:53:53 -05:00
Matt Nadareski
d9fa073c0f Minor cleanup from last commit 2025-11-10 09:53:25 -05:00
HeroponRikiBestest
95a20fb30d Add nested json output for protectionscan (#391)
* Attempt nested for real this time

* forgot to include handling the base path

* Reverted unnecesssary changes

* Remove unneeded net6.0 gating

* Add comments

* Finish comments

* Might as well safeguard if no protections are returned.

* Use object instead of dynamic

* Remove weird empty string root node handling

* remove uneeded ref

* Modify comment accordingly

* Merge regular and nested json writing

* Simplify object value checking

* change flag handling

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>

* Initial fixes

* Invert if-else to de-nest main logic

* minor formatting fixes

* Improved Json output

* Remove unnecessary comments

* That's just a string

* Slight improvement

* Simplify casting

* attept further simplification

* Further

* Reduce nesting using inversion and continue

* Further simplified logic

* Replace my code with sabre's

* De-nest using continue

* newline

* Remove all instances where it can end in a directory seperator

---------

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
2025-11-10 09:48:22 -05:00
Matt Nadareski
dd1e49662f Cleanup 2025-11-07 22:14:28 -05:00
HeroponRikiBestest
78947616b1 Add json output for protectionscan (#390)
* actual first pr

* Initial fixes

* Second round of fixes

* Final fix
2025-11-07 22:07:08 -05:00
Matt Nadareski
ba56b9aff6 Add file-only flag for scans 2025-11-07 10:51:02 -05:00
Matt Nadareski
3b287c6f7b Mid 2025-11-07 09:46:34 -05:00
Matt Nadareski
dcdf0bcf40 Automatic cleanup 2025-11-07 08:24:22 -05:00
Matt Nadareski
d2eebd0f00 Cleanup 2025-11-07 07:40:33 -05:00
HeroponRikiBestest
a281e8325e Initial ISO Protection Detection (#389)
* Initial

* Laserlock in

* This is a better way to read the string

* That array copy wasn't needed either

* Use static filetype method, rename filetype.iso

* Initial Codelok ISO scanning

* Comments with redump IDs

* Add redump examples to laserlock

* Change for testing

* Small comment

* TAGES

* halfway through safedisc

* Safedisc done

* Fix 1

* Major oversights in puredata fixed

* Finish SecuROM

* ProtectDiSC done

* Alpharom done

* Finish StarForce, initial PR review ready

* Wait, that would be really bad

* One more for the road.

* Small finding

* Small fix for finding

* Notes on finding

* Several minor fixes, decisions

* what do you MEAN it returns true if there are no elements in the array

* Future todo

* Update packages

* Rebase

* Fix runisochecks

* First round of fixes

* Second round of fixes

* Tests attempt 1

* Make checks work

* Individual test attempt 1

* Final tests

---------

Co-authored-by: Matt Nadareski <mnadareski@outlook.com>
2025-11-07 07:22:28 -05:00
Matt Nadareski
9f5b292035 Fix MPQ note 2025-11-06 21:05:55 -05:00
Matt Nadareski
466689dcbc Clean up holdover logic 2025-11-06 13:43:49 -05:00
Matt Nadareski
5b0bf2e7e4 Update packages 2025-11-06 08:22:09 -05:00
Matt Nadareski
cc8dfb8478 Update rolling tag 2025-10-26 20:29:55 -04:00
Matt Nadareski
82412fce9a Add more ProtectCD/DVD checks (fixes #387) 2025-10-21 14:06:09 -04:00
HeroponRikiBestest
1a67decd7b Minor Release Control update (#386)
* Minor Release Control update

Added russian Gothic 4, updated international gothic 4 now that a redump entry exists, noted 2 other versions known to exist.

* Minor comment formatting
2025-10-16 19:58:48 -04:00
Matt Nadareski
f1afb6d60b Bump version 2025-10-07 16:00:04 -04:00
Matt Nadareski
5e812daf01 Fix debug flag use 2025-10-07 14:56:53 -04:00
Matt Nadareski
ab508eebe8 Use main feature pattern 2025-10-07 13:44:27 -04:00
Matt Nadareski
31792fab48 Update packages 2025-10-07 13:33:55 -04:00
Matt Nadareski
010f792b1a Add minor identifier for NSIS 2025-10-07 09:45:50 -04:00
Matt Nadareski
a3118cee68 Use CommandLine library for executable 2025-10-06 09:43:15 -04:00
209 changed files with 1940 additions and 735 deletions

View File

@@ -1,40 +1,48 @@
name: Build and Test
on:
push:
branches: [ "master" ]
push:
branches: ["master"]
jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Run tests
run: dotnet test
- name: Run publish script
run: ./publish-nix.sh -d
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Upload to rolling
uses: ncipollo/release-action@v1.14.0
with:
allowUpdates: True
artifacts: "*.nupkg,*.snupkg,*.zip"
body: 'Last built commit: ${{ github.sha }}'
name: 'Rolling Release'
prerelease: True
replacesArtifacts: True
tag: "rolling"
updateOnlyUnreleased: True
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Run tests
run: dotnet test
- name: Run publish script
run: ./publish-nix.sh -d
- name: Update rolling tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag -f rolling
git push origin :refs/tags/rolling || true
git push origin rolling --force
- name: Upload to rolling
uses: ncipollo/release-action@v1.20.0
with:
allowUpdates: True
artifacts: "*.nupkg,*.snupkg,*.zip"
body: "Last built commit: ${{ github.sha }}"
name: "Rolling Release"
prerelease: True
replacesArtifacts: True
tag: "rolling"
updateOnlyUnreleased: True

View File

@@ -3,21 +3,21 @@ name: Build PR
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
9.0.x
- name: Build
run: dotnet build
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Run tests
run: dotnet test
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: |
8.0.x
9.0.x
10.0.x
- name: Build
run: dotnet build
- name: Run tests
run: dotnet test

2
.vscode/launch.json vendored
View File

@@ -10,7 +10,7 @@
"request": "launch",
"preLaunchTask": "build",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/ProtectionScan/bin/Debug/net9.0/ProtectionScan.dll",
"program": "${workspaceFolder}/ProtectionScan/bin/Debug/net10.0/ProtectionScan.dll",
"args": [],
"cwd": "${workspaceFolder}/ProtectionScan",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console

View File

@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0</TargetFrameworks>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<IsPackable>false</IsPackable>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
@@ -16,10 +16,10 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
<PackageReference Include="SabreTools.Serialization" Version="[2.0.1]" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="SabreTools.Serialization" Version="[2.2.1]" />
<PackageReference Include="xunit" Version="2.9.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.4">
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>

View File

@@ -42,4 +42,4 @@ namespace BinaryObjectScanner.Test.Data
#endregion
}
}
}

View File

@@ -47,4 +47,4 @@ namespace BinaryObjectScanner.Test.Data
Assert.Equal(105, actual.Length);
}
}
}
}

View File

@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test
#endregion
}
}
}

View File

@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -0,0 +1,34 @@
using System.IO;
using BinaryObjectScanner.FileType;
using Xunit;
namespace BinaryObjectScanner.Test.FileType
{
public class DiskImageTests
{
private static readonly SabreTools.Serialization.Wrappers.ISO9660 wrapper
= new(new SabreTools.Data.Models.ISO9660.Volume(), new MemoryStream(new byte[1024]));
[Fact]
public void DetectFile_EmptyString_Null()
{
string file = string.Empty;
var detectable = new ISO9660(wrapper);
string? actual = detectable.Detect(file, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void DetectStream_EmptyStream_Empty()
{
Stream? stream = new MemoryStream();
string file = string.Empty;
var detectable = new ISO9660(wrapper);
string? actual = detectable.Detect(stream, file, includeDebug: false);
Assert.NotNull(actual);
Assert.Empty(actual);
}
}
}

View File

@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -31,4 +31,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -28,4 +28,3 @@ namespace BinaryObjectScanner.Test.FileType
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.GameEngine
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -30,4 +30,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -18,7 +18,7 @@ namespace BinaryObjectScanner.Test.Packer
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckPortableExecutableTest()
{
@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -18,7 +18,7 @@ namespace BinaryObjectScanner.Test.Packer
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckPortableExecutableTest()
{
@@ -32,4 +32,4 @@ namespace BinaryObjectScanner.Test.Packer
Assert.Null(actual);
}
}
}
}

View File

@@ -30,4 +30,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -18,5 +18,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new AlphaROM();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,7 +19,7 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckPortableExecutableTest()
{
@@ -32,7 +32,7 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckDirectoryPathTest()
{
@@ -54,4 +54,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -18,5 +18,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckExecutable(file, exe, includeDebug: false);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new CopyLok();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -27,4 +27,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -40,5 +40,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckFilePath(path);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new LaserLok();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -53,5 +53,18 @@ namespace BinaryObjectScanner.Test.Protection
string? actual = checker.CheckFilePath(path);
Assert.Null(actual);
}
[Fact]
public void CheckDiskImageTest()
{
string file = "filename";
SabreTools.Data.Models.ISO9660.Volume model = new();
Stream source = new MemoryStream(new byte[1024]);
SabreTools.Serialization.Wrappers.ISO9660 iso = new(model, source);
var checker = new Macrovision();
string? actual = checker.CheckDiskImage(file, iso, includeDebug: false);
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -19,4 +19,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -41,4 +41,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

View File

@@ -16,4 +16,4 @@ namespace BinaryObjectScanner.Test.Protection
Assert.Null(actual);
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More