Move some things around

This commit is contained in:
Matt Nadareski
2025-09-06 12:40:06 -04:00
parent 8fedbb8f77
commit f5b1868eec
6 changed files with 11 additions and 8 deletions

View File

@@ -1,10 +1,11 @@
using System;
using System.Collections.Generic;
using BinaryObjectScanner.Data;
using BinaryObjectScanner.Interfaces;
using SabreTools.Serialization.Wrappers;
using Xunit;
namespace BinaryObjectScanner.Test
namespace BinaryObjectScanner.Test.Data
{
public class FactoryTests
{

View File

@@ -1,7 +1,8 @@
using System.Collections.Generic;
using BinaryObjectScanner.Data;
using Xunit;
namespace BinaryObjectScanner.Test
namespace BinaryObjectScanner.Test.Data
{
public class ProtectionDictionaryTests
{

View File

@@ -1,12 +1,12 @@
namespace BinaryObjectScanner
namespace BinaryObjectScanner.Data
{
/// <summary>
/// Represents a mapping from checker to detected protection
/// </summary>
#if NET20 || NET35
public class CheckDictionary<T> : System.Collections.Generic.Dictionary<T, string> where T : notnull
internal class CheckDictionary<T> : System.Collections.Generic.Dictionary<T, string> where T : notnull
#else
public class CheckDictionary<T> : System.Collections.Concurrent.ConcurrentDictionary<T, string> where T : notnull
internal class CheckDictionary<T> : System.Collections.Concurrent.ConcurrentDictionary<T, string> where T : notnull
#endif
{
/// <inheritdoc cref="System.Collections.Generic.Dictionary{TKey, TValue}.Add(TKey, TValue)"/>

View File

@@ -1,9 +1,9 @@
using SabreTools.Serialization.Interfaces;
using SabreTools.Serialization.Wrappers;
namespace BinaryObjectScanner
namespace BinaryObjectScanner.Data
{
public static class Factory
internal static class Factory
{
/// <summary>
/// Create an instance of a detectable based on file type

View File

@@ -5,7 +5,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
namespace BinaryObjectScanner
namespace BinaryObjectScanner.Data
{
/// <summary>
/// Represents a mapping from file to a set of protections

View File

@@ -1,6 +1,7 @@
using System;
using System.IO;
using BinaryObjectScanner;
using BinaryObjectScanner.Data;
namespace ProtectionScan
{