|
|
@ -16,12 +16,12 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
|
|
|
|
public void Setup()
|
|
|
|
public void Setup()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_parseResult = new RemoteEpisode
|
|
|
|
_parseResult = new RemoteEpisode
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Release = new ReleaseInfo
|
|
|
|
Release = new ReleaseInfo
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Title = "Dexter.S08E01.EDITED.WEBRip.x264-KYR"
|
|
|
|
Title = "Dexter.S08E01.EDITED.WEBRip.x264-KYR"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
@ -49,5 +49,12 @@ namespace NzbDrone.Core.Test.DecisionEngineTests
|
|
|
|
Mocker.GetMock<IConfigService>().SetupGet(c => c.ReleaseRestrictions).Returns(restrictions);
|
|
|
|
Mocker.GetMock<IConfigService>().SetupGet(c => c.ReleaseRestrictions).Returns(restrictions);
|
|
|
|
Subject.IsSatisfiedBy(_parseResult, null).Should().BeTrue();
|
|
|
|
Subject.IsSatisfiedBy(_parseResult, null).Should().BeTrue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Test]
|
|
|
|
|
|
|
|
public void should_not_try_to_find_empty_string_as_a_match()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Mocker.GetMock<IConfigService>().SetupGet(c => c.ReleaseRestrictions).Returns("test\n");
|
|
|
|
|
|
|
|
Subject.IsSatisfiedBy(_parseResult, null).Should().BeTrue();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|