public void OverlaysNull()
        {
            var imageProvider = _moq.GetImageProviderMock().Object;

            Assert.Throws <ArgumentNullException>(() =>
            {
                using (new OverlayedImageProvider(imageProvider, null)) { }
            });
        }
示例#2
0
        public void NullVideoWriter()
        {
            var imageProvider = _moq.GetImageProviderMock().Object;

            Assert.Throws <ArgumentNullException>(() =>
            {
                using (new Recorder(null, imageProvider, 10)) { }
            });
        }