Пример #1
0
 public void CreateFigureTestStorage()
 {
     _mousehandler.Setup(a => a.GetMove()).Returns(new System.Drawing.Point());
     _mousehandler.Setup(a => a.GetPreviousMove()).Returns(new System.Drawing.Point());
     _storage.Setup(a => a.AddFigure(It.IsAny <IDrawable>()));
     _drawingEngine.CreateFigure();
     _storage.Verify(a => a.AddFigure(It.IsAny <IDrawable>()), Times.Once);
 }