Exemplo n.º 1
0
 public void CancelExecuteTest()
 {
     model.CurrentMode  = 0;
     model.CurrentState = new DrawingState(model);
     model.PressPointer(90, 150);
     model.ReleasePointer(190, 250);
     drawCommand = new DrawCommand(model, model.GetTotalShapes[0]);
     drawCommand.CancelExecute();
     Assert.AreEqual(0, model.GetTotalShapes.Count);
 }