mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-06-22 23:10:34 -04:00
* Refactored invite user flow to separate error handling on create user flow and email flow. This should help users that have unique situations. * Switch to using files to check LastWriteTime. Debug code in for Robbie to test on rclone * Updated Parser namespace. Changed the LastWriteTime to check all files and folders.
27 lines
830 B
C#
27 lines
830 B
C#
using API.Data;
|
|
using Xunit;
|
|
|
|
namespace API.Tests.Entities
|
|
{
|
|
/// <summary>
|
|
/// Tests for <see cref="API.Entities.Series"/>
|
|
/// </summary>
|
|
public class SeriesTest
|
|
{
|
|
[Theory]
|
|
[InlineData("Darker than Black")]
|
|
public void CreateSeries(string name)
|
|
{
|
|
var key = API.Services.Tasks.Scanner.Parser.Parser.Normalize(name);
|
|
var series = DbFactory.Series(name);
|
|
Assert.Equal(0, series.Id);
|
|
Assert.Equal(0, series.Pages);
|
|
Assert.Equal(name, series.Name);
|
|
Assert.Null(series.CoverImage);
|
|
Assert.Equal(name, series.LocalizedName);
|
|
Assert.Equal(name, series.SortName);
|
|
Assert.Equal(name, series.OriginalName);
|
|
Assert.Equal(key, series.NormalizedName);
|
|
}
|
|
}
|
|
} |