mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-07-09 02:16:55 +00:00
Found out why these helpers were this way
This commit is contained in:
@@ -121,7 +121,7 @@ namespace SabreTools.Metadata.DatFiles.Test
|
||||
|
||||
datFile.MachineDescriptionToName();
|
||||
|
||||
Machine actualMachine = Assert.Single(datFile.GetMachinesDB());
|
||||
Machine actualMachine = Assert.Single(datFile.GetMachinesDB()).Value;
|
||||
Assert.Equal("description", actualMachine.Name);
|
||||
Assert.Equal("description", actualMachine.Description);
|
||||
}
|
||||
@@ -274,7 +274,7 @@ namespace SabreTools.Metadata.DatFiles.Test
|
||||
List<string> regions = ["World", "Nowhere"];
|
||||
datFile.SetOneGamePerRegion(regions);
|
||||
|
||||
var actualWorldMachine = Assert.Single(datFile.GetMachinesDB());
|
||||
var actualWorldMachine = Assert.Single(datFile.GetMachinesDB()).Value;
|
||||
Assert.NotNull(actualWorldMachine);
|
||||
Assert.Equal("machine (World)", actualWorldMachine.Name);
|
||||
}
|
||||
@@ -318,7 +318,7 @@ namespace SabreTools.Metadata.DatFiles.Test
|
||||
|
||||
datFile.StripSceneDatesFromItems();
|
||||
|
||||
Machine actualMachine = Assert.Single(datFile.GetMachinesDB());
|
||||
Machine actualMachine = Assert.Single(datFile.GetMachinesDB()).Value;
|
||||
Assert.Equal("machine-name", actualMachine.Name);
|
||||
}
|
||||
|
||||
|
||||
@@ -1010,7 +1010,7 @@ namespace SabreTools.Metadata.DatFiles.Test
|
||||
datFile.BucketBy(ItemKey.Machine);
|
||||
datFile.RemoveMachineRelationshipTags();
|
||||
|
||||
Machine actual = Assert.Single(datFile.GetMachinesDB());
|
||||
Machine actual = Assert.Single(datFile.GetMachinesDB()).Value;
|
||||
Assert.Null(actual.CloneOf);
|
||||
Assert.Null(actual.RomOf);
|
||||
Assert.Null(actual.SampleOf);
|
||||
|
||||
Reference in New Issue
Block a user