public override string ToString() { string errorInfo = ""; if (CommonFunc.HasTestError(m_nTestError, ETestError.FileMissing)) { errorInfo += "<文件缺失>"; } if (CommonFunc.HasTestError(m_nTestError, ETestError.InvalidFlag)) { errorInfo += "<非法符号>"; } if (CommonFunc.HasTestError(m_nTestError, ETestError.InvalidValue)) { errorInfo += "<非法值>"; } if (CommonFunc.HasTestError(m_nTestError, ETestError.NoEqualValue)) { errorInfo += "<不一致值>"; } if (CommonFunc.HasTestError(m_nTestError, ETestError.EvenRoundNotZero)) { errorInfo += "<偶数节不为0>"; } if (CommonFunc.HasTestError(m_nTestError, ETestError.ShowTimeNotZero)) { errorInfo += "<Show Time不为0>"; } string briefInfo = m_strStageFile + "\t"; if (errorInfo.Length > 0) { briefInfo += errorInfo; } else { briefInfo += "Pass"; } return(briefInfo); }
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); }