private bool CheckIfTestCaseDisabled()
{
bool testCaseDisabled = false;
bool transportIsMAPI = Common.GetConfigurationPropertyValue("TransportSeq", this.Site).ToLower(System.Globalization.CultureInfo.CurrentCulture) == "mapi_http";
if (transportIsMAPI && !Common.IsRequirementEnabled(933, this.Site))
{
testCaseDisabled = true;
}
else
{
switch (TestContext.TestName)
{
case "MSOXORULE_S01_TC09_AddExtendedRuleForThreeTimes":
testCaseDisabled = !Common.IsRequirementEnabled(646, this.Site);
break;
case "MSOXORULE_S02_TC10_ServerExecuteRule_Action_OP_MOVE":
testCaseDisabled = !Common.IsRequirementEnabled(929, this.Site);
break;
case "MSOXORULE_S02_TC18_ServerExecuteRule_Action_MultipleOP_MOVE":
testCaseDisabled = !Common.IsRequirementEnabled(929, this.Site) || !Common.IsRequirementEnabled(904, this.Site);
break;
case "MSOXORULE_S02_TC11_ServerExecuteRule_Action_OP_COPY":
testCaseDisabled = !Common.IsRequirementEnabled(298, this.Site);
break;
case "MSOXORULE_S03_TC04_OOFBehaviorsForST_KEEP_OOF_HIST":
testCaseDisabled = !Common.IsRequirementEnabled(583, this.Site);
break;
case "MSOXORULE_S03_TC06_OOFBehaviorsForFlagSameSemanticAsST_ONLY_WHEN_OOF":
testCaseDisabled = !Common.IsRequirementEnabled(625, this.Site);
break;
case "MSOXORULE_S03_TC07_OOFBehaviorsForFlagDisableSpecificOOFRule":
testCaseDisabled = !Common.IsRequirementEnabled(624, this.Site);
break;
case "MSOXORULE_S05_TC01_ServerGenerateOneDAM_ForOP_DEFER_ACTION_BelongToSameRuleProvider":
testCaseDisabled = !Common.IsRequirementEnabled(908, this.Site);
break;
default:
break;
}
}
return testCaseDisabled;
}
}