public void TestRefreshDrawCanvas() { Assert.ThrowsException <ArgumentNullException>(() => _canvasDrawer.RefreshDrawCanvas(null)); var graphics = new GraphicsMock(); _canvasDrawer.RefreshDrawCanvas(graphics); Assert.IsTrue(graphics.IsCalledClearAll); Assert.IsTrue(_canvasShapeDrawersHelper.IsCalledDraw); Assert.IsTrue(_currentState.IsCalledDraw); }
public void TestRefreshDrawCanvas() { Assert.ThrowsException <ArgumentNullException>(() => _canvasDrawer.RefreshDrawCanvas(null)); PrepareTestDraw(); var graphics = new GraphicsMock(); _canvasDrawer.RefreshDrawCanvas(graphics); Assert.IsTrue(graphics.IsCalledClearAll); AssertTestDraw(graphics); }