public void NotStartsWith_HandlesType_ReturnsNotStartWithType()
        {
            var startsWith = enDecisionType.NotStartsWith;
            //------------Setup for test--------------------------
            var notStartsWith = new NotStartsWith();

            //------------Execute Test---------------------------
            //------------Assert Results-------------------------
            Assert.AreEqual(startsWith, notStartsWith.HandlesType());
        }
Beispiel #2
0
 public StringFilter ToUpper()
 {
     Equal         = Equal?.ToUpper();
     NotEqual      = NotEqual?.ToUpper();
     Contains      = Contains?.ToUpper();
     NotContains   = NotContains?.ToUpper();
     StartsWith    = StartsWith?.ToUpper();
     NotStartsWith = NotStartsWith?.ToUpper();
     EndsWith      = EndsWith?.ToUpper();
     NotEndsWith   = NotEndsWith?.ToUpper();
     return(this);
 }
        public void NotStartsWith_Invoke_DoesntStartWith_ReturnsTrue()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new NotStartsWith();
            var cols          = new string[2];

            cols[0] = "TestData";
            cols[1] = "No";
            //------------Execute Test---------------------------

            var result = notStartsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsTrue(result);
        }
        public void NotStartsWith_Invoke_DoesStartWith_ReturnsFalse()
        {
            //------------Setup for test--------------------------
            var notStartsWith = new NotStartsWith();

            string[] cols = new string[2];
            cols[0] = "TestData";
            cols[1] = "Test";

            //------------Execute Test---------------------------

            bool result = notStartsWith.Invoke(cols);

            //------------Assert Results-------------------------
            Assert.IsFalse(result);
        }
Beispiel #5
0
 public StringFilter ToUpper()
 {
     if (Equal != null)
     {
         Equal = Equal.ToUpper();
     }
     if (NotEqual != null)
     {
         NotEqual = NotEqual.ToUpper();
     }
     if (Contains != null)
     {
         Contains = Contains.ToUpper();
     }
     if (NotContains != null)
     {
         NotContains = NotContains.ToUpper();
     }
     if (StartsWith != null)
     {
         StartsWith = StartsWith.ToUpper();
     }
     if (NotStartsWith != null)
     {
         NotStartsWith = NotStartsWith.ToUpper();
     }
     if (EndsWith != null)
     {
         EndsWith = EndsWith.ToUpper();
     }
     if (NotEndsWith != null)
     {
         NotEndsWith = NotEndsWith.ToUpper();
     }
     return(this);
 }