public EvrStringComparatorTestsBase(OperationEnumeration ovalOperation)
        {
            switch (ovalOperation)
            {
            case OperationEnumeration.equals:
                this.MakeSureThatThe = new EvrStringComparatorChecker().Using().EqualsOperation();
                break;

            case OperationEnumeration.notequal:
                this.MakeSureThatThe = new EvrStringComparatorChecker().Using().NotEqualOperation();
                break;

            case OperationEnumeration.greaterthan:
                this.MakeSureThatThe = new EvrStringComparatorChecker().Using().GreaterThanOperation();
                break;

            case OperationEnumeration.lessthan:
                this.MakeSureThatThe = new EvrStringComparatorChecker().Using().LessThanOperation();
                break;

            case OperationEnumeration.greaterthanorequal:
                this.MakeSureThatThe = new EvrStringComparatorChecker().Using().GreaterOrEqualThanOperation();
                break;

            case OperationEnumeration.lessthanorequal:
                this.MakeSureThatThe = new EvrStringComparatorChecker().Using().LessOrEqualThanOperation();
                break;

            default:
                throw new InvalidOvalOperationException();
            }
        }
예제 #2
0
 public EvrStringComparatorTestsBase(OperationEnumeration ovalOperation)
 {
     switch (ovalOperation)
     {
         case OperationEnumeration.equals:
             this.MakeSureThatThe = new EvrStringComparatorChecker().Using().EqualsOperation();
             break;
         case OperationEnumeration.notequal:
             this.MakeSureThatThe = new EvrStringComparatorChecker().Using().NotEqualOperation();
             break;
         case OperationEnumeration.greaterthan:
             this.MakeSureThatThe = new EvrStringComparatorChecker().Using().GreaterThanOperation();
             break;
         case OperationEnumeration.lessthan:
             this.MakeSureThatThe = new EvrStringComparatorChecker().Using().LessThanOperation();
             break;
         case OperationEnumeration.greaterthanorequal:
             this.MakeSureThatThe = new EvrStringComparatorChecker().Using().GreaterOrEqualThanOperation();
             break;
         case OperationEnumeration.lessthanorequal:
             this.MakeSureThatThe = new EvrStringComparatorChecker().Using().LessOrEqualThanOperation();
             break;
         default:
             throw new InvalidOvalOperationException();
     }
 }