Fix test regression

This commit is contained in:
Dean Herbert 2024-07-12 16:28:31 +09:00
parent ca2fc72959
commit 43addc8400
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public void TestScenePreviewTimeline()
AddStep("set preview time to -1", () => EditorBeatmap.PreviewTime.Value = -1);
AddAssert("preview time line should not show", () => !Editor.ChildrenOfType<PreviewTimePart>().Single().Children.Any());
AddStep("set preview time to 1000", () => EditorBeatmap.PreviewTime.Value = 1000);
AddAssert("preview time line should show", () => Editor.ChildrenOfType<PreviewTimePart>().Single().Children.Single().Alpha == 1);
AddAssert("preview time line should show", () => Editor.ChildrenOfType<PreviewTimePart>().Single().Children.Single().Alpha, () => Is.GreaterThan(0));
}
}
}