public void ExecutionEmpty() { var engineMock = new Mock<IBuildEngine>(); var task = new LLBLGenProjectUpdate(); task.BuildEngine = engineMock.Object; Assert.IsTrue(task.Execute()); }
public void ExecutionInvalidAction() { var engineMock = new Mock<IBuildEngine>(); var task = new LLBLGenProjectUpdate(); task.BuildEngine = engineMock.Object; task.Action = null; Assert.IsFalse(task.Execute()); task = new LLBLGenProjectUpdate(); task.BuildEngine = engineMock.Object; task.Action = "Not an action"; Assert.IsFalse(task.Execute()); }