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); }
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); }