Seeding reorg
This commit is contained in:
@@ -277,6 +277,17 @@ public class LoadControllerTests
|
||||
Assert.That(mri.GetProperty("setting").EnumerateObject().Count(), Is.EqualTo(27));
|
||||
Assert.That(mri.GetProperty("abilities").EnumerateObject().Count(), Is.EqualTo(6));
|
||||
|
||||
// my_rotation_info.schedules drives the client's "Custom Rotation" button visibility
|
||||
// (Wizard/MyRotationAllInfo.cs:45 — IsMyRotationEnable). GlobalsImporter sources the
|
||||
// window from the prod capture; default-initialised DateTime.MinValue values would hide
|
||||
// the button. Assert the captured 2024→2030 free_battle window round-trips through the
|
||||
// MyRotationScheduleConfig section.
|
||||
var fb = mri.GetProperty("schedules").GetProperty("free_battle");
|
||||
Assert.That(DateTime.Parse(fb.GetProperty("begin_time").GetString()!),
|
||||
Is.EqualTo(new DateTime(2024, 5, 1, 20, 0, 0, DateTimeKind.Utc)));
|
||||
Assert.That(DateTime.Parse(fb.GetProperty("end_time").GetString()!),
|
||||
Is.EqualTo(new DateTime(2030, 6, 26, 19, 59, 59, DateTimeKind.Utc)));
|
||||
|
||||
// avatar_info: abilities dict has 24 entries; schedules is empty list
|
||||
var ai = root.GetProperty("avatar_info");
|
||||
Assert.That(ai.GetProperty("abilities").EnumerateObject().Count(), Is.EqualTo(24));
|
||||
|
||||
Reference in New Issue
Block a user