Example #1
0
        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));
        }