diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-12-09 01:24:30 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-12-09 01:24:30 +0100 |
| commit | c0fde3496c43b5648c369ca32306148d5aa50b91 (patch) | |
| tree | 2cb5cd400a5a07b70ef217a2e205a83442d39882 /tests | |
| parent | 514d95e5aa5197808f239ba26266f52b419a0b61 (diff) | |
Add tests for HdHomerunHost.TryGetTunerHostInfo
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs b/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs index 4b1509edd9..fb7cf6a471 100644 --- a/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs +++ b/tests/Jellyfin.Server.Implementations.Tests/LiveTv/HdHomerunHostTests.cs @@ -119,5 +119,16 @@ namespace Jellyfin.Server.Implementations.Tests.LiveTv Assert.True(channels[0].Favorite); Assert.Equal("http://192.168.1.111:5004/auto/v4.1", channels[0].URL); } + + [Fact] + public async Task TryGetTunerHostInfo_Valid_Success() + { + var host = await _hdHomerunHost.TryGetTunerHostInfo(TestIp, CancellationToken.None).ConfigureAwait(false); + Assert.Equal(_hdHomerunHost.Type, host.Type); + Assert.Equal(TestIp, host.Url); + Assert.Equal("HDHomeRun PRIME", host.FriendlyName); + Assert.Equal("FFFFFFFF", host.DeviceId); + Assert.Equal(3, host.TunerCount); + } } } |
