Exemple #1
0
    public async Task User_can_download_a_video_by_merging_best_streams_into_a_single_mp3_file()
    {
        // Arrange
        var youtube        = new YoutubeClient();
        var outputFilePath = Path.ChangeExtension(_tempOutputFixture.GetTempFilePath(), "mp3");

        // Act
        await youtube.Videos.DownloadAsync("AI7ULzgf8RU", outputFilePath);

        // Assert
        MediaFormat.IsMp3File(outputFilePath).Should().BeTrue();
    }