public void Can_Read_Sample() { TvDbSeriesXmlReader reader = new TvDbSeriesXmlReader(); string xml = GetSampleXml(); var series = reader.Read(xml); Assert.NotNull(series); }
public void Episodes_Gets_Populated() { TvDbSeriesXmlReader reader = new TvDbSeriesXmlReader(); string xml = GetSampleXml(); var series = reader.Read(xml); Assert.NotNull(series.Episodes); Assert.True(series.Episodes.Any()); }
public void Actors_Property_Gets_Set_Correctly() { TvDbSeriesXmlReader reader = new TvDbSeriesXmlReader(); string xml = GetSampleXml(); TvDbSeries series = reader.Read(xml); Assert.True(series.Actors.Count() > 2); }
public void Id_Property_Gets_Set_Correctly() { TvDbSeriesXmlReader reader = new TvDbSeriesXmlReader(); string xml = GetSampleXml(); var series = reader.Read(xml); string expected = "72449"; string actual = series.Id; Assert.Equal(expected, actual); }
public void Name_Property_Gets_Set_Correctly() { TvDbSeriesXmlReader reader = new TvDbSeriesXmlReader(); string xml = GetSampleXml(); var series = reader.Read(xml); string expected = "Stargate SG-1"; string actual = series.Name; Assert.Equal(expected, actual); }