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