mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-26 02:27:06 +01:00
Fix AudioBookListResolver test coverage
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
#nullable enable
|
||||
#pragma warning disable CS1591
|
||||
|
||||
using System;
|
||||
@@ -16,21 +17,11 @@ namespace Emby.Naming.AudioBook
|
||||
_options = options;
|
||||
}
|
||||
|
||||
public AudioBookFileInfo ParseFile(string path)
|
||||
public AudioBookFileInfo? Resolve(string path, bool isDirectory = false)
|
||||
{
|
||||
return Resolve(path, false);
|
||||
}
|
||||
|
||||
public AudioBookFileInfo ParseDirectory(string path)
|
||||
{
|
||||
return Resolve(path, true);
|
||||
}
|
||||
|
||||
public AudioBookFileInfo Resolve(string path, bool isDirectory = false)
|
||||
{
|
||||
if (string.IsNullOrEmpty(path))
|
||||
if (path.Length == 0)
|
||||
{
|
||||
throw new ArgumentNullException(nameof(path));
|
||||
throw new ArgumentException("String can't be empty.", nameof(path));
|
||||
}
|
||||
|
||||
// TODO
|
||||
|
||||
Reference in New Issue
Block a user