mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-04 05:35:49 +00:00
Add protection tests
This commit is contained in:
33
BinaryObjectScanner.Test/Protection/ActiveMARKTests.cs
Normal file
33
BinaryObjectScanner.Test/Protection/ActiveMARKTests.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ActiveMARKTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new ActiveMARK();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ActiveMARK();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/AegiSoftTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/AegiSoftTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class AegiSoftTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new AegiSoft();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new AegiSoft();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new AegiSoft();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/AlphaDVDTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/AlphaDVDTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class AlphaDVDTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new AlphaDVD();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new AlphaDVD();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/AlphaROMTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/AlphaROMTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class AlphaROMTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new AlphaROM();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
36
BinaryObjectScanner.Test/Protection/ArmadilloTests.cs
Normal file
36
BinaryObjectScanner.Test/Protection/ArmadilloTests.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ArmadilloTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Armadillo();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ExtractPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
string outputDir = string.Empty;
|
||||
|
||||
var checker = new Armadillo();
|
||||
bool actual = checker.Extract(file, pex, outputDir, includeDebug: false);
|
||||
Assert.False(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/BitpoolTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/BitpoolTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class BitpoolTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Bitpool();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Bitpool();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/ByteShieldTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/ByteShieldTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ByteShieldTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ByteShield();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new ByteShield();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new ByteShield();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/CDCheckTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/CDCheckTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDCheckTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CDCheck();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
68
BinaryObjectScanner.Test/Protection/CDDVDCopsTests.cs
Normal file
68
BinaryObjectScanner.Test/Protection/CDDVDCopsTests.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDDVDCopsTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckNewExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CDDVDCops();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/CDGuardTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/CDGuardTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDGuardTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CDGuard();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CDGuard();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CDGuard();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/CDKeyTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/CDKeyTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDKeyTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CDKey();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/CDLockTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/CDLockTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CDLock();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CDLock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CDLock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/CDProtectorTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/CDProtectorTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDProtectorTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CDProtector();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CDProtector();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/CDSHiELDSETests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/CDSHiELDSETests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDSHiELDSETests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CDSHiELDSE();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/CDXTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/CDXTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CDXTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CDX();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CDX();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
BinaryObjectScanner.Test/Protection/CactusDataShieldTests.cs
Normal file
19
BinaryObjectScanner.Test/Protection/CactusDataShieldTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CactusDataShieldTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new CactusDataShield();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/CenegaProtectDVDTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/CenegaProtectDVDTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CenegaProtectDVDTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CenegaProtectDVD();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CenegaProtectDVD();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CenegaProtectDVD();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/ChannelwareTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/ChannelwareTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ChannelwareTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Channelware();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Channelware();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Channelware();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ChosenBytesCodeLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ChosenBytesCodeLock();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new ChosenBytesCodeLock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new ChosenBytesCodeLock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/CopyKillerTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/CopyKillerTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CopyKillerTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CopyKiller();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CopyKiller();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CopyKiller();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/CopyLokTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/CopyLokTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CopyLokTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CopyLok();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/CopyXTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/CopyXTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CopyXTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CopyX();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CopyX();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CopyX();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/CrypKeyTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/CrypKeyTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CrypKeyTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new CrypKey();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new CrypKey();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new CrypKey();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/CuckoTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/CuckoTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class CuckoTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Cucko();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/DVDCryptTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/DVDCryptTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class DVDCryptTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new DVDCrypt();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new DVDCrypt();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/DVDMoviePROTECTTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/DVDMoviePROTECTTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class DVDMoviePROTECTTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new DVDMoviePROTECT();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new DVDMoviePROTECT();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/DenuvoTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/DenuvoTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class DenuvoTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Denuvo();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Denuvo();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Denuvo();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/DigiGuardTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/DigiGuardTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class DigiGuardTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new DigiGuard();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new DigiGuard();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new DigiGuard();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class DinamicMultimediaTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new DinamicMultimedia();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new DinamicMultimedia();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/DiscGuardTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/DiscGuardTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class DiscGuardTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new DiscGuard();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new DiscGuard();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new DiscGuard();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/EAAntiCheatTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/EAAntiCheatTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class EAAntiCheatTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new EAAntiCheat();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new EAAntiCheat();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new EAAntiCheat();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/EasyAntiCheatTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/EasyAntiCheatTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class EasyAntiCheatTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new EasyAntiCheat();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new EasyAntiCheat();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new EasyAntiCheat();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/ElectronicArtsTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/ElectronicArtsTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ElectronicArtsTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ElectronicArts();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/Engine32Tests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/Engine32Tests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class Engine32Tests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Engine32();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Engine32();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Engine32();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/FreeLockTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/FreeLockTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class FreelockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Freelock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Freelock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/GFWLTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/GFWLTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class GFWLTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new GFWL();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new GFWL();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new GFWL();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/GefestTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/GefestTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class GefestTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Gefest();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Gefest();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Gefest();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/HexalockAutoLockTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/HexalockAutoLockTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class HexalockAutoLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new HexalockAutoLock();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new HexalockAutoLock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new HexalockAutoLock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/ImpulseReactorTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/ImpulseReactorTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ImpulseReactorTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ImpulseReactor();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new ImpulseReactor();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new ImpulseReactor();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/IndyVCDTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/IndyVCDTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class IndyVCDTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new IndyVCD();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new IndyVCD();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/InteniumTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/InteniumTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class InteniumTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Intenium();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/JoWoodTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/JoWoodTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class JoWoodTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new JoWood();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/KalypsoLauncherTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/KalypsoLauncherTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class KalypsoLauncherTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new KalypsoLauncher();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new KalypsoLauncher();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new KalypsoLauncher();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
BinaryObjectScanner.Test/Protection/KeyLockTests.cs
Normal file
19
BinaryObjectScanner.Test/Protection/KeyLockTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class KeyLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new KeyLock();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/LabelGateTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/LabelGateTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class LabelGateTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new LabelGate();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new LabelGate();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new LabelGate();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/LaserLokTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/LaserLokTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class LaserLokTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new LaserLok();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new LaserLok();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new LaserLok();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/MGIRegistrationTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/MGIRegistrationTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class MGIRegistrationTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new MGIRegistration();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
57
BinaryObjectScanner.Test/Protection/MacrovisionTests.cs
Normal file
57
BinaryObjectScanner.Test/Protection/MacrovisionTests.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class MacrovisionTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckNewExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
|
||||
|
||||
var checker = new Macrovision();
|
||||
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Macrovision();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Macrovision();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Macrovision();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/MediaCloQTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/MediaCloQTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class MediaCloQTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new MediaCloQ();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new MediaCloQ();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new MediaCloQ();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/MediaMaxTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/MediaMaxTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class MediaMaxTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new MediaMax();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new MediaMax();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new MediaMax();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/NEACProtectTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/NEACProtectTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class NEACProtectTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new NEACProtect();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new NEACProtect();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new NEACProtect();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/NProtectTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/NProtectTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class NProtectTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new NProtect();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new NProtect();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new NProtect();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class OnlineRegistrationTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new OnlineRegistration();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/OpenMGTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/OpenMGTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class OpenMGTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new OpenMG();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new OpenMG();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new OpenMG();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/OriginTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/OriginTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class OriginTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Origin();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Origin();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Origin();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
19
BinaryObjectScanner.Test/Protection/PSXAntiModchipTests.cs
Normal file
19
BinaryObjectScanner.Test/Protection/PSXAntiModchipTests.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class PSXAntiModchipTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new PSXAntiModchip();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/PlayJTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/PlayJTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class PlayJTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new PlayJ();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new PlayJ();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new PlayJ();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/ProtectDVDVideoTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/ProtectDVDVideoTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ProtectDVDVideoTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new ProtectDVDVideo();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new ProtectDVDVideo();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/ProtectDiscTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/ProtectDiscTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ProtectDiscTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ProtectDISC();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new ProtectDISC();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new ProtectDISC();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
57
BinaryObjectScanner.Test/Protection/RainbowSentinelTests.cs
Normal file
57
BinaryObjectScanner.Test/Protection/RainbowSentinelTests.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class RainbowSentinelTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckNewExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.NewExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.NewExecutable nex = new(model, source);
|
||||
|
||||
var checker = new RainbowSentinel();
|
||||
string? actual = checker.CheckExecutable(file, nex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new RainbowSentinel();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new RainbowSentinel();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new RainbowSentinel();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/RealArcadeTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/RealArcadeTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class RealArcadeTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new RealArcade();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new RealArcade();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new RealArcade();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
41
BinaryObjectScanner.Test/Protection/RingPROTECHTests.cs
Normal file
41
BinaryObjectScanner.Test/Protection/RingPROTECHTests.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class RingPROTECHTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckContentsTest()
|
||||
{
|
||||
string file = "filename";
|
||||
byte[] fileContent = [0x01, 0x02, 0x03, 0x04];
|
||||
|
||||
var checker = new RingPROTECH();
|
||||
string? actual = checker.CheckContents(file, fileContent, includeDebug: true);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new RingPROTECH();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new RingPROTECH();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/RoxxeTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/RoxxeTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class RoxxeTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Roxxe();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Roxxe();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Roxxe();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/SVKProtectorTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/SVKProtectorTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SVKProtectorTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new SVKProtector();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new SVKProtector();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new SVKProtector();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/SafeLockTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/SafeLockTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SafeLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new SafeLock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new SafeLock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/SecuROMTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/SecuROMTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SecuROMTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new SecuROM();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new SecuROM();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new SecuROM();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/SmartETests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/SmartETests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SmartETests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new SmartE();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new SmartE();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new SmartE();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/SoftLockTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/SoftLockTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SoftLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new SoftLock();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new SoftLock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new SoftLock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/SolidShieldTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/SolidShieldTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SolidShieldTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new SolidShield();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new SolidShield();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new SolidShield();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/StarForceTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/StarForceTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class StarForceTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new StarForce();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new StarForce();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new StarForce();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/SteamTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/SteamTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SteamTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Steam();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Steam();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Steam();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/SysiphusTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/SysiphusTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class SysiphusTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Sysiphus();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/TAGESTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/TAGESTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class TAGESTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new TAGES();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new TAGES();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new TAGES();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/TZCopyProtectionTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/TZCopyProtectionTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class TZCopyProtectionTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new TZCopyProtection();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new TZCopyProtection();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/ThemidaTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/ThemidaTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ThemidaTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Themida();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
22
BinaryObjectScanner.Test/Protection/ThreePLockTests.cs
Normal file
22
BinaryObjectScanner.Test/Protection/ThreePLockTests.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ThreePLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ThreePLock();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ThreeTwoOneStudiosTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new ThreeTwoOneStudios();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/UplayTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/UplayTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class UplayTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new Uplay();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Uplay();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Uplay();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/WMDSTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/WMDSTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class WMDSTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new WMDS();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new WMDS();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new WMDS();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/WTMCDProtectTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/WTMCDProtectTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class WTMCDProtectTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new WTMCDProtect();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new WTMCDProtect();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new WTMCDProtect();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/WinLockTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/WinLockTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class WinLockTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new WinLock();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new WinLock();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
44
BinaryObjectScanner.Test/Protection/XCPTests.cs
Normal file
44
BinaryObjectScanner.Test/Protection/XCPTests.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class XCPTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckPortableExecutableTest()
|
||||
{
|
||||
string file = "filename";
|
||||
SabreTools.Models.PortableExecutable.Executable model = new();
|
||||
Stream source = new MemoryStream();
|
||||
SabreTools.Serialization.Wrappers.PortableExecutable pex = new(model, source);
|
||||
|
||||
var checker = new XCP();
|
||||
string? actual = checker.CheckExecutable(file, pex, includeDebug: false);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new XCP();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new XCP();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
30
BinaryObjectScanner.Test/Protection/ZzxzzTests.cs
Normal file
30
BinaryObjectScanner.Test/Protection/ZzxzzTests.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System.Collections.Generic;
|
||||
using BinaryObjectScanner.Protection;
|
||||
using Xunit;
|
||||
|
||||
namespace BinaryObjectScanner.Test.Protection
|
||||
{
|
||||
public class ZzxzzTests
|
||||
{
|
||||
[Fact]
|
||||
public void CheckDirectoryPathTest()
|
||||
{
|
||||
string path = "path";
|
||||
List<string> files = [];
|
||||
|
||||
var checker = new Zzxzz();
|
||||
List<string> actual = checker.CheckDirectoryPath(path, files);
|
||||
Assert.Empty(actual);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void CheckFilePathTest()
|
||||
{
|
||||
string path = "path";
|
||||
|
||||
var checker = new Zzxzz();
|
||||
string? actual = checker.CheckFilePath(path);
|
||||
Assert.Null(actual);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -235,7 +235,7 @@ namespace BinaryObjectScanner.Protection
|
||||
return MatchUtil.GetFirstMatch(path, matchers, any: true);
|
||||
}
|
||||
|
||||
public static string? GetVersion(string file, byte[]? fileContent, List<int> positions)
|
||||
private static string? GetVersion(string file, byte[]? fileContent, List<int> positions)
|
||||
{
|
||||
// If we have no content
|
||||
if (fileContent == null)
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace BinaryObjectScanner.Protection
|
||||
/// Games using this protection aren't able to be run from an ISO file, and presumably use DPM as a protection feature.
|
||||
/// <see href="https://github.com/TheRogueArchivist/DRML/blob/main/entries/Cenega_ProtectDVD/Cenega_ProtectDVD.md"/>
|
||||
/// </summary>
|
||||
public class CengaProtectDVD : IExecutableCheck<PortableExecutable>, IPathCheck
|
||||
public class CenegaProtectDVD : IExecutableCheck<PortableExecutable>, IPathCheck
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public string? CheckExecutable(string file, PortableExecutable pex, bool includeDebug)
|
||||
|
||||
@@ -62,7 +62,7 @@ namespace BinaryObjectScanner.Protection
|
||||
return null;
|
||||
}
|
||||
|
||||
public static string? GetVersion(string file, byte[]? fileContent, List<int> positions)
|
||||
private static string? GetVersion(string file, byte[]? fileContent, List<int> positions)
|
||||
{
|
||||
// If we have no content
|
||||
if (fileContent == null)
|
||||
|
||||
Reference in New Issue
Block a user