mirror of
https://github.com/Radarr/Radarr
synced 2026-05-08 19:30:23 +02:00
Fixed: UpdateMovieQualityService Tests.
This commit is contained in:
parent
4283de1e9e
commit
34c838fdd5
3 changed files with 5 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
||||||
using NzbDrone.Core.Parser.Model;
|
using NzbDrone.Core.Parser.Model;
|
||||||
using NzbDrone.Core.Qualities;
|
using NzbDrone.Core.Qualities;
|
||||||
using NzbDrone.Core.Test.Framework;
|
using NzbDrone.Core.Test.Framework;
|
||||||
|
using NzbDrone.Test.Common;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Test.MediaFiles
|
namespace NzbDrone.Core.Test.MediaFiles
|
||||||
{
|
{
|
||||||
|
|
@ -58,6 +59,8 @@ public void should_not_update_if_unable_to_parse()
|
||||||
{
|
{
|
||||||
ExecuteCommand();
|
ExecuteCommand();
|
||||||
|
|
||||||
|
ExceptionVerification.ExpectedWarns(1);
|
||||||
|
|
||||||
Mocker.GetMock<IMediaFileService>().Verify(s => s.Update(It.IsAny<MovieFile>()), Times.Never());
|
Mocker.GetMock<IMediaFileService>().Verify(s => s.Update(It.IsAny<MovieFile>()), Times.Never());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ public void Execute(UpdateMovieFileQualityCommand command)
|
||||||
|
|
||||||
ParsedMovieInfo parsedMovieInfo = null;
|
ParsedMovieInfo parsedMovieInfo = null;
|
||||||
|
|
||||||
if (latestImportedName?.IsNotNullOrWhiteSpace() == false)
|
if (latestImportedName?.IsNotNullOrWhiteSpace() == true)
|
||||||
{
|
{
|
||||||
parsedMovieInfo = _parsingService.ParseMovieInfo(latestImportedName, helpers);
|
parsedMovieInfo = _parsingService.ParseMovieInfo(latestImportedName, helpers);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio 14
|
# Visual Studio 14
|
||||||
VisualStudioVersion = 14.0.24720.0
|
VisualStudioVersion = 14.0.24720.0
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{57A04B72-8088-4F75-A582-1158CF8291F7}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{57A04B72-8088-4F75-A582-1158CF8291F7}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue