1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 00:53:22 +08:00
osu-lazer/osu.Game.Rulesets.Osu.Tests
Dean Herbert 5a7d339cc8 Centralise and harden editor-ready-for-use check
Not only does this combine the check into one location, but it also adds
a check on the global `WorkingBeatmap` being updated, which is the only
way I can see the following failure happening:

```csharp
05:19:07     osu.Game.Tests: osu.Game.Tests.Visual.Editing.TestSceneEditorBeatmapCreation.TestAddAudioTrack
05:19:07       Failed TestAddAudioTrack [161 ms]
05:19:07       Error Message:
05:19:07        TearDown : System.NullReferenceException : Object reference not set to an instance of an object.
05:19:07       Stack Trace:
05:19:07       --TearDown
05:19:07        at osu.Game.Database.ModelManager`1.<>c__DisplayClass7_0.<AddFile>b__0(TModel managed) in C:\BuildAgent\work\ecd860037212ac52\osu.Game\Database\ModelManager.cs:line 36
05:19:07        at osu.Game.Database.ModelManager`1.<>c__DisplayClass8_0.<performFileOperation>b__0(Realm realm) in C:\BuildAgent\work\ecd860037212ac52\osu.Game\Database\ModelManager.cs:line 49
05:19:07        at osu.Game.Database.RealmExtensions.Write(Realm realm, Action`1 function) in C:\BuildAgent\work\ecd860037212ac52\osu.Game\Database\RealmExtensions.cs:line 14
05:19:07        at osu.Game.Database.ModelManager`1.performFileOperation(TModel item, Action`1 operation) in C:\BuildAgent\work\ecd860037212ac52\osu.Game\Database\ModelManager.cs:line 46
05:19:07        at osu.Game.Database.ModelManager`1.AddFile(TModel item, Stream contents, String filename) in C:\BuildAgent\work\ecd860037212ac52\osu.Game\Database\ModelManager.cs:line 36
05:19:07        at osu.Game.Screens.Edit.Setup.ResourcesSection.ChangeAudioTrack(FileInfo source) in C:\BuildAgent\work\ecd860037212ac52\osu.Game\Screens\Edit\Setup\ResourcesSection.cs:line 115
05:19:07        at osu.Game.Tests.Visual.Editing.TestSceneEditorBeatmapCreation.<TestAddAudioTrack>b__13_0() in C:\BuildAgent\work\ecd860037212ac52\osu.Game.Tests\Visual\Editing\TestSceneEditorBeatmapCreation.cs:line 101
05:19:07        at osu.Framework.Testing.Drawables.Steps.AssertButton.checkAssert()
05:19:07        at osu.Framework.Testing.Drawables.Steps.StepButton.PerformStep(Boolean userTriggered)
05:19:07        at osu.Framework.Testing.TestScene.runNextStep(Action onCompletion, Action`1 onError, Func`2 stopCondition)
```
2022-06-27 16:22:01 +09:00
..
.vscode Update vscode launch.json files for all other projects 2022-02-25 14:28:54 +01:00
Editor Centralise and harden editor-ready-for-use check 2022-06-27 16:22:01 +09:00
Mods Update parameter discards 2022-06-24 21:26:19 +09:00
Resources Add test resources for animated legacy hit circle overlay 2021-12-28 15:58:34 +01:00
LegacyMainCirclePieceTest.cs Update parameter discards 2022-06-24 21:26:19 +09:00
osu.Game.Rulesets.Osu.Tests.csproj Update libraries to latest versions 2022-05-11 19:54:59 +09:00
OsuBeatmapConversionTest.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuDifficultyCalculatorTest.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuLegacyModConversionTest.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
OsuSkinnableTestScene.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
StackingTest.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestPlayfieldBorder.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneAccuracyHeatmap.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneCursorParticles.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneCursorTrail.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneDrawableJudgement.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneFollowPoints.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneGameplayCursor.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircle.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircleApplication.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircleArea.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircleComboChange.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircleHidden.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircleKiai.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneHitCircleLongCombo.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneLegacyBeatmapSkin.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneMissHitWindowJudgements.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneNoSpinnerStacking.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneObjectOrderedHitPolicy.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneOsuFlashlight.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneOsuHitObjectSamples.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneOsuPlayer.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneResumeOverlay.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneShaking.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSkinFallbacks.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSlider.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSliderApplication.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSliderComboChange.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSliderHidden.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSliderInput.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSliderSnaking.cs Remove unnecessary null casts 2022-06-24 14:50:11 +09:00
TestSceneSpinner.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSpinnerApplication.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSpinnerHidden.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneSpinnerRotation.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00
TestSceneStartTimeOrderedHitPolicy.cs Automated #nullable processing 2022-06-17 16:37:17 +09:00