Exemple #1
0
		public void TestMissingExecute ()
		{
			ICommand command = new CommandWithoutExecute ();
			TestDelegate testDelegate = delegate()
			{
				command.Execute();
			};
			CommandException ex = Assert.Throws<CommandException> (testDelegate);
			Assert.That (ex.type == CommandExceptionType.EXECUTE_OVERRIDE);
		}
Exemple #2
0
        public void TestMissingExecute()
        {
            ICommand     command      = new CommandWithoutExecute();
            TestDelegate testDelegate = delegate()
            {
                command.Execute();
            };
            CommandException ex = Assert.Throws <CommandException> (testDelegate);

            Assert.That(ex.type == CommandExceptionType.EXECUTE_OVERRIDE);
        }