File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
RhythmGameUtilities.Tests
UnityPackage/Editor/Tests Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,16 @@ public void TestParseMetaDataFromChartSection()
47
47
Assert . That ( data [ "MusicStream" ] , Is . EqualTo ( "Example Song.ogg" ) ) ;
48
48
}
49
49
50
+ [ Test ]
51
+ public void TestParseTimeSignaturesFromChartSection ( )
52
+ {
53
+ var sections = Parsers . ParseSectionsFromChart ( Mocks . SONG_CHART ) ;
54
+
55
+ var timeSignatures = Parsers . ParseTimeSignaturesFromChartSection ( sections [ NamedSection . SyncTrack ] ) ;
56
+
57
+ Assert . That ( timeSignatures . Count , Is . EqualTo ( 4 ) ) ;
58
+ }
59
+
50
60
[ Test ]
51
61
public void TestParseBpmFromChartSections ( )
52
62
{
Original file line number Diff line number Diff line change @@ -47,6 +47,16 @@ public void TestParseMetaDataFromChartSection()
47
47
Assert . That ( data [ "MusicStream" ] , Is . EqualTo ( "Example Song.ogg" ) ) ;
48
48
}
49
49
50
+ [ Test ]
51
+ public void TestParseTimeSignaturesFromChartSection ( )
52
+ {
53
+ var sections = Parsers . ParseSectionsFromChart ( Mocks . SONG_CHART ) ;
54
+
55
+ var timeSignatures = Parsers . ParseTimeSignaturesFromChartSection ( sections [ NamedSection . SyncTrack ] ) ;
56
+
57
+ Assert . That ( timeSignatures . Count , Is . EqualTo ( 4 ) ) ;
58
+ }
59
+
50
60
[ Test ]
51
61
public void TestParseBpmFromChartSections ( )
52
62
{
You can’t perform that action at this time.
0 commit comments