mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-04 05:35:49 +00:00
31 lines
729 B
C#
31 lines
729 B
C#
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);
|
|
}
|
|
}
|
|
}
|