public void RenderQueue_ClearTargetDepth_CatchNullInput() { var commandQueue = Substitute.For <IRenderCommandQueue>(); IRenderQueue queue = new RenderQueue(commandQueue); Assert.Throws <Yak2DException>(() => { queue.ClearDepth(null); }); }