示例#1
0
        private bool CheckIfDoCAvailable()
        {
            mIsErrataModeEnabled = ConformanceLog.Instance.Errors.Values.Any(item => item.Any());
            btnGenetateDoC.Text  = mIsErrataModeEnabled ? DOC_ERRATA_BTN_CAPTION : DOC_BTN_CAPTION;

            bool isTestingDone = TestCaseSet.Instance.IsTestingDone;

            var deviceSupportedProfiles = UnitSet.GetSupportedProfiles();
            var clientSupportedProfiles = Enum.GetValues(typeof(Profile)).Cast <Profile>().Where(profile => profile.IsSupported());

            return(isTestingDone && (clientSupportedProfiles.Any() || deviceSupportedProfiles.Any()));
        }