public void AddClipUsesAssistant() { using (ITimeline timeline = new DefaultTimeline()) { var assistant = new MockMediaFileAssistant(true); timeline.InstallAssistant(assistant); Assert.AreEqual(0, assistant.ExecutionCount); ITrack track = timeline.AddAudioGroup().AddTrack(); track.AddAudio("1sec.wav"); Assert.AreEqual(1, assistant.ExecutionCount); } }
public void AddClipIgnoresUnrequiredAssistant() { using (ITimeline timeline = new DefaultTimeline()) { var assistant = new MockMediaFileAssistant(false); timeline.InstallAssistant(assistant); Assert.AreEqual(0, assistant.ExecutionCount); ITrack track = timeline.AddAudioGroup().AddTrack(); track.AddAudio("1sec.wav"); Assert.AreEqual(0, assistant.ExecutionCount); } }
public void AddClipIgnoresUnrequiredAssistant() { using (ITimeline timeline = new DefaultTimeline()) { MockMediaFileAssistant assistant = new MockMediaFileAssistant(false); timeline.InstallAssistant(assistant); Assert.AreEqual(0, assistant.ExecutionCount); ITrack track = timeline.AddAudioGroup().AddTrack(); track.AddAudio("1sec.wav"); Assert.AreEqual(0, assistant.ExecutionCount); } }