mirror of https://github.com/lidarr/Lidarr
Fixed broken test
This commit is contained in:
parent
b3fb807f41
commit
ad0e372c35
|
@ -14,7 +14,7 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc.Json
|
|||
public class UpdateFixture : CoreTest<JsonApiProvider>
|
||||
{
|
||||
private XbmcSettings _settings;
|
||||
const string _expectedJson = "{\"jsonrpc\":\"2.0\",\"method\":\"VideoLibrary.GetTvShows\",\"params\":{\"properties\":[\"file\",\"imdbnumber\"]},\"id\":10}";
|
||||
const string _expectedJson = "{\"jsonrpc\":\"2.0\",\"method\":\"VideoLibrary.GetTvShows\",\"params\":{\"properties\":[\"file\",\"imdbnumber\"]},\"id\":";
|
||||
|
||||
private const string _tvshowsResponse = "{\"id\":10,\"jsonrpc\":\"2.0\",\"result\":{\"limits\":" +
|
||||
"{\"end\":5,\"start\":0,\"total\":5},\"tvshows\":[{\"file\"" +
|
||||
|
@ -42,7 +42,7 @@ namespace NzbDrone.Core.Test.NotificationTests.Xbmc.Json
|
|||
|
||||
Mocker.GetMock<IHttpProvider>()
|
||||
.Setup(s => s.PostCommand(_settings.Address, _settings.Username, _settings.Password,
|
||||
It.Is<string>(e => e.Replace(" ", "").Replace("\r\n", "").Replace("\t", "") == _expectedJson.Replace(" ", ""))))
|
||||
It.Is<string>(e => e.Replace(" ", "").Replace("\r\n", "").Replace("\t", "").Contains(_expectedJson.Replace(" ", "")))))
|
||||
.Returns(_tvshowsResponse);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue