private static bool TestCondition(ref Number4 number, InstructionTestBoolean testBoolean)
 {
     switch (testBoolean)
     {
         case InstructionTestBoolean.Zero:
             return number.AllZero;
         case InstructionTestBoolean.NonZero:
             return number.AnyNonZero;
         default:
             throw new ArgumentOutOfRangeException("testBoolean");
     }
 }
Пример #2
0
        private static bool TestCondition(ref Number4 number, InstructionTestBoolean testBoolean)
        {
            switch (testBoolean)
            {
            case InstructionTestBoolean.Zero:
                return(number.AllZero);

            case InstructionTestBoolean.NonZero:
                return(number.AnyNonZero);

            default:
                throw new ArgumentOutOfRangeException("testBoolean");
            }
        }
Пример #3
0
        private static string GenerateTestCondition(InstructionTestBoolean testBoolean)
        {
            switch (testBoolean)
            {
            case InstructionTestBoolean.Zero:
                return("AllZero");

            case InstructionTestBoolean.NonZero:
                return("AnyNonZero");

            default:
                throw new ArgumentOutOfRangeException("testBoolean");
            }
        }
Пример #4
0
 private static string GenerateTestCondition(InstructionTestBoolean testBoolean)
 {
     switch (testBoolean)
     {
         case InstructionTestBoolean.Zero:
             return "AllZero";
         case InstructionTestBoolean.NonZero:
             return "AnyNonZero";
         default:
             throw new ArgumentOutOfRangeException("testBoolean");
     }
 }