35 lines
989 B
C#
35 lines
989 B
C#
// <copyright file="AudioBookFileInfoTests.cs" company="PlaceholderCompany">
|
|
// Copyright (c) PlaceholderCompany. All rights reserved.
|
|
// </copyright>
|
|
|
|
using Emby.Naming.AudioBook;
|
|
using Xunit;
|
|
|
|
namespace Jellyfin.Naming.Tests.AudioBook
|
|
{
|
|
public class AudioBookFileInfoTests
|
|
{
|
|
[Fact]
|
|
public void CompareTo_Same_Success()
|
|
{
|
|
var info = new AudioBookFileInfo(string.Empty, string.Empty);
|
|
Assert.Equal(0, info.CompareTo(info));
|
|
}
|
|
|
|
[Fact]
|
|
public void CompareTo_Null_Success()
|
|
{
|
|
var info = new AudioBookFileInfo(string.Empty, string.Empty);
|
|
Assert.Equal(1, info.CompareTo(null));
|
|
}
|
|
|
|
[Fact]
|
|
public void CompareTo_Empty_Success()
|
|
{
|
|
var info1 = new AudioBookFileInfo(string.Empty, string.Empty);
|
|
var info2 = new AudioBookFileInfo(string.Empty, string.Empty);
|
|
Assert.Equal(0, info1.CompareTo(info2));
|
|
}
|
|
}
|
|
}
|