Exemplo n.º 1
0
 public ChangeHeightCommandTests()
 {
     shape = new Shape();
     shape.Height = 10;
     changeHeightCommand = new ChangeHeightCommand(shape, 50);
 }
Exemplo n.º 2
0
 private void ChangeHeightManyTimes(CommandProcessor editor, Shape shape, Int32 numberOfTimes)
 {
     for (var i = 0; i < numberOfTimes; i++)
     {
         var command = new ChangeHeightCommand(shape, i * 10);
         editor.Do(command);
     }
 }
Exemplo n.º 3
0
 public CommandProcessorTests()
 {
     commandProcessor = new CommandProcessor();
     shape = new Shape();
 }
Exemplo n.º 4
0
 public ChangeWidthCommandTests()
 {
     shape = new Shape();
     shape.Width = 10;
     changeWidthCommand = new ChangeWidthCommand(shape, 50);
 }