public void EvaluateFailsIfTypeIsUnknown() { var condition = new CompareValuesTaskCondition { Value1 = "test1", Value2 = "test2", EvaluationType = (CompareValuesTaskCondition.Evaluation)99 }; var result = this.mocks.StrictMock<IIntegrationResult>(); this.mocks.ReplayAll(); Assert.Throws<InvalidOperationException>(() => condition.Eval(result)); this.mocks.VerifyAll(); }
public void EvaluateReturnsFalseIfValuesDontMatch() { var condition = new CompareValuesTaskCondition { Value1 = "test1", Value2 = "test2" }; var result = this.mocks.StrictMock<IIntegrationResult>(); this.mocks.ReplayAll(); var actual = condition.Eval(result); this.mocks.VerifyAll(); Assert.IsFalse(actual); }