mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
Removed Episodes list from EpisodeFile object.
This commit is contained in:
parent
cbfbb87926
commit
56fdf1a040
9 changed files with 352 additions and 285 deletions
|
@ -6,6 +6,7 @@ using NLog;
|
|||
using NLog.Config;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Instrumentation;
|
||||
using NzbDrone.Core.Repository;
|
||||
using NzbDrone.Core.Test.Framework;
|
||||
|
||||
namespace NzbDrone.Core.Test
|
||||
|
@ -146,5 +147,22 @@ namespace NzbDrone.Core.Test
|
|||
Assert.AreEqual(ex.ToString(), logItem.Exception);
|
||||
ExceptionVerification.ExcpectedErrors(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[Test]
|
||||
public void null_string_as_arg_should_not_fail()
|
||||
{
|
||||
//setup
|
||||
|
||||
Logger Logger = LogManager.GetCurrentClassLogger();
|
||||
var epFile = new EpisodeFile();
|
||||
Logger.Trace("File {0} no longer exists on disk. removing from database.", epFile.Path);
|
||||
|
||||
epFile.Path.Should().BeNull();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue