コード例 #1
0
ファイル: TestCommand.cs プロジェクト: noodle/strangeioc
		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);
		}
コード例 #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);
        }