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"); } }
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"); } }
private static string GenerateTestCondition(InstructionTestBoolean testBoolean) { switch (testBoolean) { case InstructionTestBoolean.Zero: return("AllZero"); case InstructionTestBoolean.NonZero: return("AnyNonZero"); default: throw new ArgumentOutOfRangeException("testBoolean"); } }
private static string GenerateTestCondition(InstructionTestBoolean testBoolean) { switch (testBoolean) { case InstructionTestBoolean.Zero: return "AllZero"; case InstructionTestBoolean.NonZero: return "AnyNonZero"; default: throw new ArgumentOutOfRangeException("testBoolean"); } }