2020-11-01 02:47:31 -07:00
|
|
|
using Emby.Naming.AudioBook;
|
2020-09-20 05:02:41 -07:00
|
|
|
using Xunit;
|
|
|
|
|
|
|
|
namespace Jellyfin.Naming.Tests.AudioBook
|
|
|
|
{
|
|
|
|
public class AudioBookFileInfoTests
|
|
|
|
{
|
|
|
|
[Fact]
|
|
|
|
public void CompareTo_Same_Success()
|
|
|
|
{
|
2020-11-01 02:47:31 -07:00
|
|
|
var info = new AudioBookFileInfo(string.Empty, string.Empty);
|
2020-09-20 05:02:41 -07:00
|
|
|
Assert.Equal(0, info.CompareTo(info));
|
|
|
|
}
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
public void CompareTo_Null_Success()
|
|
|
|
{
|
2020-11-01 02:47:31 -07:00
|
|
|
var info = new AudioBookFileInfo(string.Empty, string.Empty);
|
2020-09-20 05:02:41 -07:00
|
|
|
Assert.Equal(1, info.CompareTo(null));
|
|
|
|
}
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
public void CompareTo_Empty_Success()
|
|
|
|
{
|
2020-11-01 02:47:31 -07:00
|
|
|
var info1 = new AudioBookFileInfo(string.Empty, string.Empty);
|
|
|
|
var info2 = new AudioBookFileInfo(string.Empty, string.Empty);
|
2020-09-20 05:02:41 -07:00
|
|
|
Assert.Equal(0, info1.CompareTo(info2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|