コード例 #1
0
ファイル: CommandTests.cs プロジェクト: remy22/DeltaEngine
 public void CommandWithDragAction()
 {
     var trigger = new MockDragTrigger();
     var CommandName = RegisterCommand(trigger);
     new Command(CommandName, delegate(Vector2D point, Vector2D dims, bool test)
         { actionPerformed = true; });
     AssertActionPerformed(trigger);
 }
コード例 #2
0
        public void CommandWithDragAction()
        {
            var trigger     = new MockDragTrigger();
            var commandName = RegisterCommand(trigger);

            new Command(commandName, delegate(Vector2D point, Vector2D dims, bool test)
                        { actionPerformed = true; });
            AssertActionPerformed(trigger);
        }