public void RenderQueue_DistortionStage_CatchNullInputs() { var commandQueue = Substitute.For <IRenderCommandQueue>(); IRenderQueue queue = new RenderQueue(commandQueue); var stage = Substitute.For <IDistortionStage>(); var camera = Substitute.For <ICamera2D>(); var source = Substitute.For <ITexture>(); var target = Substitute.For <IRenderTarget>(); Assert.Throws <Yak2DException>(() => { queue.Distortion(null, camera, source, target); }); Assert.Throws <Yak2DException>(() => { queue.Distortion(stage, null, source, target); }); Assert.Throws <Yak2DException>(() => { queue.Distortion(stage, camera, null, target); }); Assert.Throws <Yak2DException>(() => { queue.Distortion(stage, camera, source, null); }); }