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