Execute() public method

public Execute ( ) : void
return void
Exemplo n.º 1
0
        public void ClickCommand_Returns_Clicked()
        {
            Command command = new ClickCommand(window);

            command.Execute();

            Assert.AreEqual("Clicked", window.DrawnText);
        }
Exemplo n.º 2
0
        public void ClickCommand_Execute_And_Then_Undo_Should_Be_Empty()
        {
            Command command = new ClickCommand(window);

            command.Execute();
            Command.Undo();

            Assert.AreEqual("", window.DrawnText);
        }