Beispiel #1
0
        public int SpecialTest()
        {
            int retValue = 0;

            foreach (KeyValuePair <int, RainbowRoundInfo> kvp in RoundInfoMap)
            {
                RainbowRoundInfo au = kvp.Value;

                if (IsShowTimeRound(au.RoundNO))
                {
                    foreach (int ball in au.BallList)
                    {
                        if (0 != ball)
                        {
                            CommonFunc.SetTestError(ref retValue, ETestError.ShowTimeNotZero);
                        }
                    }
                }
                else
                {
                    foreach (int ball in au.BallList)
                    {
                        if (ball < 0 || ball > 7)
                        {
                            CommonFunc.SetTestError(ref retValue, ETestError.InvalidValue);
                        }
                    }
                }
            }

            return(retValue);
        }
Beispiel #2
0
        public int SpecialTest()
        {
            int retValue = 0;

            foreach (KeyValuePair <int, AuditionRoundInfo> kvp in RoundInfoMap)
            {
                AuditionRoundInfo au = kvp.Value;
                if (au.RoundNO % 2 == 0)
                {
                    if (!au.m_bAllEmpty)
                    {
                        CommonFunc.SetTestError(ref retValue, ETestError.EvenRoundNotZero);
                    }
                }
                else if (IsShowTimeRound(au.RoundNO))
                {
                    if (!au.m_bAllEmpty)
                    {
                        CommonFunc.SetTestError(ref retValue, ETestError.ShowTimeNotZero);
                    }
                }
                else
                {
                    if (!au.m_bAllEmpty)
                    { // 非空节不能存在0.
                        foreach (AuditionBallInfo bt in au.BallList)
                        {
                            if (bt.m_BallType == AuditionBallType.None)
                            {
                                CommonFunc.SetTestError(ref retValue, ETestError.InvalidValue);
                            }
                        }
                    }
                }
            }

            return(retValue);
        }