Ejemplo n.º 1
0
        public void RenderQueue_Blur2DEffectStage_CatchNullInputs()
        {
            var commandQueue = Substitute.For <IRenderCommandQueue>();

            IRenderQueue queue = new RenderQueue(commandQueue);

            var stage  = Substitute.For <IBlurStage>();
            var source = Substitute.For <ITexture>();
            var target = Substitute.For <IRenderTarget>();

            Assert.Throws <Yak2DException>(() => { queue.Blur(null, source, target); });
            Assert.Throws <Yak2DException>(() => { queue.Blur(stage, null, target); });
            Assert.Throws <Yak2DException>(() => { queue.Blur(stage, source, null); });
        }