public void ConvertFavorites_ReadFirstFavorite_ReturnTrue(int val) { string pathToJson = @"..\..\..\..\Renamer.Data\SampleData\UserFavorites.json"; string json = File.ReadAllText(pathToJson); JsonConverter converter = new JsonConverter(); Assert.Equal(val, converter.ConvertFavoritesToDto(json)[0]); }