public void GivenAJsonString_WhenGettingAllEpisodes_ItShouldReturnAListOfEpisodes() { var parameters = new GetEpisodesParams { Properties = new [] { EpisodeProperties.Title } }; var mock = GetKodiServiceMock(parameters); var service = mock.Object; var actual = service.GetEpisodes(parameters, "UnitTests"); var expected = Episodes.GetList(); Assert.IsInstanceOf <JsonRpcResponse <GetEpisodesResponse> >(actual); Assert.That(actual.Result.Episodes.Count, Is.EqualTo(expected.Episodes.Count)); AssertThatPropertyValuesAreEquals(actual.Result, expected); }