public void RenderQueue_Blur1DEffectStage_CatchNullInputs() { var commandQueue = Substitute.For <IRenderCommandQueue>(); IRenderQueue queue = new RenderQueue(commandQueue); var stage = Substitute.For <IBlur1DStage>(); var source = Substitute.For <ITexture>(); var target = Substitute.For <IRenderTarget>(); Assert.Throws <Yak2DException>(() => { queue.Blur1D(null, source, target); }); Assert.Throws <Yak2DException>(() => { queue.Blur1D(stage, null, target); }); Assert.Throws <Yak2DException>(() => { queue.Blur1D(stage, source, null); }); }