mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix build
This commit is contained in:
@@ -222,11 +222,11 @@ namespace SabreTools.DatItems
|
||||
|
||||
// If the item and machine names match
|
||||
if (lastMachineName == selfMachineName && lastItem.GetName() == GetName())
|
||||
output = DupeType.Internal | DupeType.All;
|
||||
output |= DupeType.All;
|
||||
|
||||
// Otherwise, hash match is assumed
|
||||
else
|
||||
output = DupeType.Internal | DupeType.Hash;
|
||||
output |= DupeType.Hash;
|
||||
|
||||
return output;
|
||||
}
|
||||
@@ -271,11 +271,11 @@ namespace SabreTools.DatItems
|
||||
|
||||
// If the item and machine names match
|
||||
if (lastMachineName == selfMachineName && lastItem.GetName() == GetName())
|
||||
output = DupeType.Internal | DupeType.All;
|
||||
output |= DupeType.All;
|
||||
|
||||
// Otherwise, hash match is assumed
|
||||
else
|
||||
output = DupeType.Internal | DupeType.Hash;
|
||||
output |= DupeType.Hash;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace SabreTools.Test.DatTools
|
||||
if (filename != null)
|
||||
filename = Path.Combine(Environment.CurrentDirectory, "TestData", filename);
|
||||
|
||||
var datFile = SabreTools.DatTools.Parser.CreateAndParse(filename, throwOnError: true);
|
||||
var datFile = Parser.CreateAndParse(filename, throwOnError: true);
|
||||
Assert.Equal(datFormat, datFile.Header.GetFieldValue<DatFormat>(DatHeader.DatFormatKey));
|
||||
Assert.Equal(totalCount, datFile.Items.DatStatistics.TotalCount);
|
||||
Assert.Equal(totalCount, datFile.ItemsDB.DatStatistics.TotalCount);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using SabreTools.DatFiles;
|
||||
using SabreTools.DatItems;
|
||||
using SabreTools.DatItems.Formats;
|
||||
using SabreTools.DatTools;
|
||||
using Xunit;
|
||||
|
||||
namespace SabreTools.Test.Filtering
|
||||
|
||||
Reference in New Issue
Block a user