@ -29,8 +29,7 @@ public class CustomFormatLoader : ICustomFormatLoader
return cf.Obj with
{
Category = matchingCategory?.CategoryName,
FileName = cf.File.Name
Category = matchingCategory?.CategoryName
};
}));
}
@ -28,9 +28,6 @@ public record CustomFormatData
[JsonIgnore]
public string? Category { get; init; }
public string FileName { get; init; } = "";
[JsonProperty("trash_id")]
[JsonNoSerialize]
public string TrashId { get; init; } = "";
@ -229,7 +229,6 @@ public class CustomFormatDataComparerTest
var a = new CustomFormatData
FileName = "file1.json",
TrashId = "a",
TrashScores = {["default"] = 1},
Category = "one"
@ -237,7 +236,6 @@ public class CustomFormatDataComparerTest
var b = new CustomFormatData
FileName = "file2.json",
TrashId = "b",
TrashScores = {["default"] = 2},
Category = "two"
@ -23,8 +23,8 @@ public class CustomFormatLoaderIntegrationTest : GuideIntegrationFixture
results.Should().BeEquivalentTo(new[]
NewCf.Data("first", "1") with {FileName = "first.json"},
NewCf.Data("second", "2") with {FileName = "second.json"}
NewCf.Data("first", "1"),
NewCf.Data("second", "2")
}, o => o.Excluding(x => x.Type == typeof(JObject)));