public void CanConvertToWebmVideo()
        {
            var options = AvOptions.WebmVideo(@"Data\movie.mp4", string.Format(@"{0}\result.webm", OutputDir));
            MediaConvertor converter = new MediaConvertor();
            Task task = converter.Convert(options);

            Task.WaitAll(task);
            Assert.IsTrue(File.Exists(string.Format(@"{0}\result.webm", OutputDir)));
        }
        public void CanConvertAudioToFlash()
        {
            var options = AvOptions.FlashAudio(@"Data\jazz.mp3", string.Format(@"{0}\result.flv", OutputDir));
            MediaConvertor converter = new MediaConvertor();
            Task task = converter.Convert(options);

            Task.WaitAll(task);
            Assert.IsTrue(File.Exists(string.Format(@"{0}\result.flv", OutputDir)));
        }
        public void CanConvertAudioToOgg2()
        {
            var options = AvOptions.OggAudio(@"Data\08 бэйба-лэйба.mp3", string.Format(@"{0}\result.ogg", OutputDir));
            MediaConvertor converter = new MediaConvertor();
            Task task = converter.Convert(options);

            Task.WaitAll(task);
            Assert.IsTrue(File.Exists(string.Format(@"{0}\result.ogg", OutputDir)));
        }
        public void CannotConvertWithInvalidArguments()
        {
            try
            {
                var options = AvOptions.FlashVideo(@"Data\movie.mp5", string.Format(@"{0}\result.flv", OutputDir));
                MediaConvertor converter = new MediaConvertor();
                Task task = converter.Convert(options);

                Task.WaitAll(task);
            }
            catch (AggregateException ae)
            {
                throw ae.InnerException;
            }
        }