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

            IRenderQueue queue = new RenderQueue(commandQueue);

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

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