diff options
| author | Bond-009 <bond.009@outlook.com> | 2021-09-28 10:59:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-28 10:59:25 +0200 |
| commit | 2def7043cedeb0e2c7e7daffef0c389670b7e0dc (patch) | |
| tree | e8944e02f4fd503a2bd252ad94f2ad1e15f11c02 /tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs | |
| parent | 60f3d7ca6cdd760b0a66dc4b74ffc9dd1495a5b8 (diff) | |
| parent | 8858d8e59789ee3ad7b55077900d80437ef982b5 (diff) | |
Merge pull request #6546 from ianjazz246/theorydata
Diffstat (limited to 'tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs')
| -rw-r--r-- | tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs b/tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs index 59a6b52d1..4f413d965 100644 --- a/tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs +++ b/tests/Jellyfin.Api.Tests/Controllers/DynamicHlsControllerTests.cs @@ -19,33 +19,28 @@ namespace Jellyfin.Api.Tests.Controllers } } - public static IEnumerable<object[]> GetSegmentLengths_Success_TestData() + public static TheoryData<long, int, double[]> GetSegmentLengths_Success_TestData() { - yield return new object[] { 0, 6, Array.Empty<double>() }; - yield return new object[] - { + var data = new TheoryData<long, int, double[]>(); + data.Add(0, 6, Array.Empty<double>()); + data.Add( TimeSpan.FromSeconds(3).Ticks, 6, - new double[] { 3 } - }; - yield return new object[] - { + new double[] { 3 }); + data.Add( TimeSpan.FromSeconds(6).Ticks, 6, - new double[] { 6 } - }; - yield return new object[] - { + new double[] { 6 }); + data.Add( TimeSpan.FromSeconds(3.3333333).Ticks, 6, - new double[] { 3.3333333 } - }; - yield return new object[] - { + new double[] { 3.3333333 }); + data.Add( TimeSpan.FromSeconds(9.3333333).Ticks, 6, - new double[] { 6, 3.3333333 } - }; + new double[] { 6, 3.3333333 }); + + return data; } } } |
