mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Move Replacer tests to new project
This commit is contained in:
@@ -2,11 +2,10 @@ using System.Collections.Generic;
|
||||
using SabreTools.Core.Tools;
|
||||
using SabreTools.DatItems;
|
||||
using SabreTools.DatItems.Formats;
|
||||
using SabreTools.DatTools;
|
||||
using SabreTools.Hashing;
|
||||
using Xunit;
|
||||
|
||||
namespace SabreTools.Test
|
||||
namespace SabreTools.DatTools.Test
|
||||
{
|
||||
public class ReplacerTests
|
||||
{
|
||||
@@ -63,13 +62,13 @@ namespace SabreTools.Test
|
||||
[Fact]
|
||||
public void ReplaceFields_File()
|
||||
{
|
||||
var datItem = new DatItems.Formats.File();
|
||||
var datItem = new File();
|
||||
datItem.CRC = ZeroHash.CRC32Str;
|
||||
datItem.MD5 = ZeroHash.MD5Str;
|
||||
datItem.SHA1 = ZeroHash.SHA1Str;
|
||||
datItem.SHA256 = ZeroHash.SHA256Str;
|
||||
|
||||
var repDatItem = new DatItems.Formats.File();
|
||||
var repDatItem = new File();
|
||||
repDatItem.CRC = TextHelper.NormalizeCRC32("deadbeef");
|
||||
repDatItem.MD5 = TextHelper.NormalizeMD5("deadbeef");
|
||||
repDatItem.SHA1 = TextHelper.NormalizeSHA1("deadbeef");
|
||||
@@ -8,6 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\SabreTools.Core\SabreTools.Core.csproj" />
|
||||
<ProjectReference Include="..\SabreTools.DatItems\SabreTools.DatItems.csproj" />
|
||||
<ProjectReference Include="..\SabreTools.DatTools\SabreTools.DatTools.csproj" />
|
||||
</ItemGroup>
|
||||
@@ -18,6 +19,7 @@
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
|
||||
<PackageReference Include="SabreTools.Hashing" Version="1.4.2" />
|
||||
<PackageReference Include="xunit" Version="2.9.2" />
|
||||
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.0">
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
|
||||
Reference in New Issue
Block a user