예제 #1
0
		public void TestMissingExecute ()
		{
			ISequenceCommand command = new SequenceCommandWithoutExecute ();
			TestDelegate testDelegate = delegate()
			{
				command.Execute();
			};
			SequencerException ex = Assert.Throws<SequencerException> (testDelegate);
			Assert.That (ex.type == SequencerExceptionType.EXECUTE_OVERRIDE);
		}
예제 #2
0
        public void TestMissingExecute()
        {
            ISequenceCommand command      = new SequenceCommandWithoutExecute();
            TestDelegate     testDelegate = delegate()
            {
                command.Execute();
            };
            SequencerException ex = Assert.Throws <SequencerException> (testDelegate);

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