using NUnit.Framework; namespace m3uTool.Tests { [TestFixture] public class Mp4EncoderTests : ProgressCallbackTestBase { /// /// Call this method from the worker thread to increase the progress /// counter by a specified value. /// public override void StepTo(int val) { if (val%10 == 0) base.StepTo(val); } /// /// Tests Encoding an Mp4 file. /// [Test] public void Test() { var encOpts = new Mp4EncodingOptions(); encOpts.OutputFilename = "44_16_s_opts.aac"; using (ProcessStreamWrapper enc = new Mp4Encoder(encOpts)) { enc.ProgressCallback = this; enc.ProcessInput("44_16_s.wav"); } } } }