public async Task TestDownload() { _ytModel = await _ytHandler.DownloadVideoAsync(_ytAddress); Assert.NotNull(_ytModel); var fileExists = File.Exists(_ytModel.Path); Assert.True(fileExists); }
public async Task TestDownloadAndTrim() { var model = await _ytHandler.DownloadVideoAsync(_url); var filename = String.Format("{0}.{1}", model.Id, model.Extension); _originalPath = model.Path; bool originalFileExists = File.Exists(_originalPath); Assert.True(originalFileExists); _trimmedPath = _trimmer.Run(filename, 10, 10); bool trimmedFileExists = File.Exists(_trimmedPath); Assert.True(trimmedFileExists); }