|
|
@ -25,8 +25,8 @@ namespace Jellyfin.Naming.Tests.Video
|
|
|
|
files.Select(i => VideoResolver.Resolve(i, false, _namingOptions)).OfType<VideoFileInfo>().ToList(),
|
|
|
|
files.Select(i => VideoResolver.Resolve(i, false, _namingOptions)).OfType<VideoFileInfo>().ToList(),
|
|
|
|
_namingOptions).ToList();
|
|
|
|
_namingOptions).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Single(result.Where(v => v.ExtraType is null));
|
|
|
|
Assert.Single(result, v => v.ExtraType is null);
|
|
|
|
Assert.Single(result.Where(v => v.ExtraType is not null));
|
|
|
|
Assert.Single(result, v => v.ExtraType is not null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
@ -44,8 +44,8 @@ namespace Jellyfin.Naming.Tests.Video
|
|
|
|
files.Select(i => VideoResolver.Resolve(i, false, _namingOptions)).OfType<VideoFileInfo>().ToList(),
|
|
|
|
files.Select(i => VideoResolver.Resolve(i, false, _namingOptions)).OfType<VideoFileInfo>().ToList(),
|
|
|
|
_namingOptions).ToList();
|
|
|
|
_namingOptions).ToList();
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Single(result.Where(v => v.ExtraType is null));
|
|
|
|
Assert.Single(result, v => v.ExtraType is null);
|
|
|
|
Assert.Single(result.Where(v => v.ExtraType is not null));
|
|
|
|
Assert.Single(result, v => v.ExtraType is not null);
|
|
|
|
Assert.Equal(2, result[0].AlternateVersions.Count);
|
|
|
|
Assert.Equal(2, result[0].AlternateVersions.Count);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|