af1152b001
Refactored all C# test files to use explicit namespace declarations and moved all using directives inside the namespace block for consistency. Updated assembly info and cache files to reflect the new build. Adjusted MvcTestingAppManifest.json to use fully qualified assembly names. No functional changes; all updates are related to code style, organization, and project metadata.
40 lines
1.3 KiB
C#
40 lines
1.3 KiB
C#
// <copyright file="MovieResolverTests.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
namespace Jellyfin.Server.Implementations.Tests.Library;
|
|
|
|
using Emby.Naming.Common;
|
|
using Emby.Server.Implementations.Library.Resolvers.Movies;
|
|
using MediaBrowser.Controller;
|
|
using MediaBrowser.Controller.Drawing;
|
|
using MediaBrowser.Controller.Library;
|
|
using MediaBrowser.Controller.Providers;
|
|
using MediaBrowser.Model.IO;
|
|
using Microsoft.Extensions.Logging;
|
|
using Moq;
|
|
using Xunit;
|
|
|
|
public class MovieResolverTests
|
|
{
|
|
private static readonly NamingOptions _namingOptions = new();
|
|
|
|
[Fact]
|
|
public void Resolve_GivenLocalAlternateVersion_ResolvesToVideo()
|
|
{
|
|
var movieResolver = new MovieResolver(Mock.Of<IImageProcessor>(), Mock.Of<ILogger<MovieResolver>>(), _namingOptions, Mock.Of<IDirectoryService>());
|
|
var itemResolveArgs = new ItemResolveArgs(
|
|
Mock.Of<IServerApplicationPaths>(),
|
|
null)
|
|
{
|
|
Parent = null,
|
|
FileInfo = new FileSystemMetadata
|
|
{
|
|
FullName = "/movies/Black Panther (2018)/Black Panther (2018) - 1080p 3D.mk3d"
|
|
}
|
|
};
|
|
|
|
Assert.NotNull(movieResolver.Resolve(itemResolveArgs));
|
|
}
|
|
}
|