Example #1
0
        public void ExecuteCommandDoesnotThrowException()
        {
            Assert.IsNotNull(executive);
            var cmd = new ThrowExceptionCommand();

            Assert.Throws <System.NotImplementedException>(() => cmd.Execute(model));
            Assert.DoesNotThrow(() => executive.ExecuteCommand(cmd, "TestRecordable", "ExtensionTests"));
            Assert.AreEqual(Logging.WarningLevel.Error, model.Logger.WarningLevel);
        }
Example #2
0
 public void ExecuteCommandDoesnotThrowException()
 {
     Assert.IsNotNull(executive);
     var cmd = new ThrowExceptionCommand();
     Assert.Throws<System.NotImplementedException>(() => cmd.Execute(model));
     Assert.DoesNotThrow(() => executive.ExecuteCommand(cmd, "TestRecordable", "ExtensionTests"));
     Assert.AreEqual(Logging.WarningLevel.Error, model.Logger.WarningLevel);
 }