Beispiel #1
0
        public void ConditionEqualCSTest()
        {
            //Arrange
            ActValidation actValidation = new ActValidation();

            actValidation.ValueExpression = new ValueExpression(actValidation, "");

            //Act
            actValidation.CalcEngineType = ActValidation.eCalcEngineType.CS;
            actValidation.Condition      = "4==4";
            actValidation.Execute();

            //Assert
            Assert.AreEqual(actValidation.Status, Amdocs.Ginger.CoreNET.Execution.eRunStatus.Passed);
        }
Beispiel #2
0
        public void ConditionFalseEqualCSTest()
        {
            //Arrange
            ActValidation actValidation = new ActValidation();

            actValidation.ValueExpression = new ValueExpression(actValidation, "");

            //Act
            actValidation.CalcEngineType = ActValidation.eCalcEngineType.CS;
            actValidation.Condition      = "4=4";
            actValidation.Execute();

            //Assert
            Assert.AreEqual(actValidation.Status, Amdocs.Ginger.CoreNET.Execution.eRunStatus.Failed);
            Assert.IsTrue(actValidation.ExInfo.Contains("error"));
        }