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