mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-04-21 21:59:47 +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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user