Skip to content

Commit fb0d033

Browse files
committed
rename LevelLength to Duration
1 parent f9fb419 commit fb0d033

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

GeometryDashAPI.Tests/LevelLengthTests.cs renamed to GeometryDashAPI.Tests/LevelDurationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace GeometryDashAPI.Tests;
1010

1111
[TestFixture]
12-
public class LevelLengthTests
12+
public class LevelDurationTests
1313
{
1414
[TestCase("12034598_Conclusion", 57)]
1515
[TestCase("28755513_TheFinalLair", 154)]
@@ -19,6 +19,6 @@ public void Test(string fileName, int expectedSeconds)
1919
var responseBody = File.ReadAllText(Path.Combine("data", "levels", fileName));
2020
var response = new ServerResponse<LevelResponse>(HttpStatusCode.OK, responseBody);
2121
var level = new Level(response.GetResultOrDefault().Level.LevelString, compressed: true);
22-
level.LevelLength.TotalSeconds.Should().BeApproximately(expectedSeconds, precision: 1);
22+
level.Duration.TotalSeconds.Should().BeApproximately(expectedSeconds, precision: 1);
2323
}
2424
}

GeometryDashAPI/Levels/Level.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public Guidelines Guidelines
2323
set => Options.Guidelines = value;
2424
}
2525

26-
public TimeSpan LevelLength => Levels.LevelLength.Measure(this);
26+
public TimeSpan Duration => LevelDuration.Measure(this);
2727

2828
public int CountBlock => Blocks.Count;
2929
public int CountColor => Options.Colors.Count;

GeometryDashAPI/Levels/LevelLength.cs renamed to GeometryDashAPI/Levels/LevelDuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace GeometryDashAPI.Levels
66
{
7-
public static class LevelLength
7+
public static class LevelDuration
88
{
99
public static TimeSpan Measure(Level level)
1010
{

0 commit comments

Comments
 (0)