Example #1
0
        public void RenderQueue_CustomShaderStage_CatchNullInputs()
        {
            var commandQueue = Substitute.For <IRenderCommandQueue>();

            IRenderQueue queue = new RenderQueue(commandQueue);

            var stage  = Substitute.For <ICustomShaderStage>();
            var target = Substitute.For <IRenderTarget>();

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