public Attach ( IAudioCaptureProvider audioCapture, AudioSource source, |
||
audioCapture | IAudioCaptureProvider | |
source | AudioSource | |
options | ||
return | void |
public void AttachDetatchSource() { var engine = new AudioEngine(); engine.Attach (this.provider, this.source, new AudioEngineCaptureOptions()); Assert.IsTrue (engine.Detach (this.source)); }
public void InvalidBeginCapture() { var engine = new AudioEngine(); engine.Attach (this.provider, this.source, new AudioEngineCaptureOptions()); Assert.Throws<ArgumentNullException> (() => engine.BeginCapture (null, new ChannelInfo(1))); Assert.Throws<ArgumentNullException> (() => engine.BeginCapture (this.source, (ChannelInfo)null)); Assert.Throws<ArgumentNullException> (() => engine.BeginCapture (this.source, (IEnumerable<IChannelInfo>)null)); Assert.Throws<ArgumentNullException> (() => engine.BeginCapture (null, UserInfoTests.GetTestUser())); Assert.Throws<ArgumentNullException> (() => engine.BeginCapture (this.source, (IUserInfo)null)); Assert.Throws<ArgumentNullException> (() => engine.BeginCapture (this.source, (IEnumerable<IUserInfo>)null)); }
public void InvalidAttach() { var engine = new AudioEngine(); Assert.Throws<ArgumentNullException> (() => engine.Attach (null, this.source, new AudioEngineCaptureOptions())); Assert.Throws<ArgumentNullException> (() => engine.Attach (this.provider, null, new AudioEngineCaptureOptions())); Assert.Throws<ArgumentNullException> (() => engine.Attach (this.provider, this.source, null)); }