public void ContextToAudioAsync() { var yc = new YoutubeContext(Url) {BaseDirectory = new DirectoryInfo(Path.GetTempPath())}; try { yc.ToAudioAsync().Wait(); Assert.IsTrue(File.Exists(yc.AudioPath.FullName)); Debug.WriteLine(yc.AudioPath.FullName); } finally { if (yc.AudioPath !=null && File.Exists(yc.AudioPath.FullName)) File.Delete(yc.AudioPath.FullName); Assert.IsFalse(File.Exists(yc.AudioPath.FullName)); } }