File tree Expand file tree Collapse file tree 2 files changed +17
-19
lines changed
osu.Game.Tests/Visual/SongSelectV2
osu.Game/Screens/SelectV2 Expand file tree Collapse file tree 2 files changed +17
-19
lines changed Original file line number Diff line number Diff line change @@ -23,23 +23,6 @@ public void SetUp() => Schedule(() =>
2323 } ;
2424 } ) ;
2525
26- [ Test ]
27- public void TestNullBeatmap ( )
28- {
29- AddStep ( "null beatmap" , ( ) => button . BeatmapSet = null ) ;
30- AddAssert ( "button invisible" , ( ) => button . Alpha == 0f ) ;
31- }
32-
33- [ Test ]
34- public void TestUpdatedBeatmap ( )
35- {
36- AddStep ( "updated beatmap" , ( ) => button . BeatmapSet = new BeatmapSetInfo
37- {
38- Beatmaps = { new BeatmapInfo ( ) }
39- } ) ;
40- AddAssert ( "button invisible" , ( ) => button . Alpha == 0f ) ;
41- }
42-
4326 [ Test ]
4427 public void TestNonUpdatedBeatmap ( )
4528 {
@@ -58,5 +41,22 @@ public void TestNonUpdatedBeatmap()
5841
5942 AddAssert ( "button visible" , ( ) => button . Alpha == 1f ) ;
6043 }
44+
45+ [ Test ]
46+ public void TestNullBeatmap ( )
47+ {
48+ AddStep ( "null beatmap" , ( ) => button . BeatmapSet = null ) ;
49+ AddAssert ( "button invisible" , ( ) => button . Alpha == 0f ) ;
50+ }
51+
52+ [ Test ]
53+ public void TestUpdatedBeatmap ( )
54+ {
55+ AddStep ( "updated beatmap" , ( ) => button . BeatmapSet = new BeatmapSetInfo
56+ {
57+ Beatmaps = { new BeatmapInfo ( ) }
58+ } ) ;
59+ AddAssert ( "button invisible" , ( ) => button . Alpha == 0f ) ;
60+ }
6161 }
6262}
Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ private void load(OsuConfigManager config)
6969
7070 Content . Anchor = Anchor . Centre ;
7171 Content . Origin = Anchor . Centre ;
72- Content . Shear = OsuGame . SHEAR ;
7372
7473 Content . AddRange ( new Drawable [ ]
7574 {
@@ -87,7 +86,6 @@ private void load(OsuConfigManager config)
8786 AutoSizeAxes = Axes . Both ,
8887 Direction = FillDirection . Horizontal ,
8988 Spacing = new Vector2 ( 4 ) ,
90- Shear = - OsuGame . SHEAR ,
9189 Children = new Drawable [ ]
9290 {
9391 new Container
You can’t perform that action at this time.
0 commit comments