diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-09-09 07:45:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-09 07:45:27 -0600 |
| commit | d1f3b8ef0319b2a519fb54f36ac78f9a0aaa571f (patch) | |
| tree | 3bb63160c9851f0a677fca2bcb78ab6a7e5d9780 /tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs | |
| parent | 8290cc134fe67cf51a72adbc896e7cc789e55a9e (diff) | |
| parent | 6004060b4ea6e68280c5d2e28799bb91fbc4f38e (diff) | |
Merge pull request #8231 from jellyfin/dependabot/nuget/xunit-2.4.2
Diffstat (limited to 'tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs')
| -rw-r--r-- | tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs b/tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs index 938d19a15..7c05ee036 100644 --- a/tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs +++ b/tests/Jellyfin.Api.Tests/ModelBinders/PipeDelimitedArrayModelBinderTests.cs @@ -192,7 +192,9 @@ namespace Jellyfin.Api.Tests.ModelBinders await modelBinder.BindModelAsync(bindingContextMock.Object); Assert.True(bindingContextMock.Object.Result.IsModelSet); - Assert.Empty((IReadOnlyList<TestType>?)bindingContextMock.Object.Result.Model); + var listResult = (IReadOnlyList<TestType>?)bindingContextMock.Object.Result.Model; + Assert.NotNull(listResult); + Assert.Empty(listResult); } [Fact] @@ -220,7 +222,9 @@ namespace Jellyfin.Api.Tests.ModelBinders await modelBinder.BindModelAsync(bindingContextMock.Object); Assert.True(bindingContextMock.Object.Result.IsModelSet); - Assert.Single((IReadOnlyList<TestType>?)bindingContextMock.Object.Result.Model); + var listResult = (IReadOnlyList<TestType>?)bindingContextMock.Object.Result.Model; + Assert.NotNull(listResult); + Assert.Single(listResult); } } } |
