public void ConvertEpisodes_ReadEpisodeName_ReturnTrue() { string pathToJson = @"..\..\..\..\Renamer.Data\SampleData\OrvilleEpisodes.json"; string json = File.ReadAllText(pathToJson); JsonConverter converter = new JsonConverter(); string expectedName = "Old Wounds"; int expectedSeason = 1; int expectedEpisodeNum = 1; DateTime expectedAirDate = new DateTime(2017, 9, 10); // Act EpisodeFromTVDBDto[] eps = converter.ConvertEpisodesToDto(json); EpisodeFromTVDBDto ep = eps[0]; // Assert Assert.Equal(expectedName, ep.EpisodeName); Assert.Equal(expectedSeason, ep.Season); Assert.Equal(expectedEpisodeNum, ep.NumberInSeason); Assert.Equal(expectedAirDate, ep.FirstAired); }