Beispiel #1
0
        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);
        }
Beispiel #2
0
        public void TestRefreshDrawCanvas()
        {
            Assert.ThrowsException <ArgumentNullException>(() => _canvasDrawer.RefreshDrawCanvas(null));
            PrepareTestDraw();
            var graphics = new GraphicsMock();

            _canvasDrawer.RefreshDrawCanvas(graphics);
            Assert.IsTrue(graphics.IsCalledClearAll);
            AssertTestDraw(graphics);
        }