public void MSASCMD_S07_TC08_GetItemEstimate_MoreThanOneMaxItems()
{
Site.Assume.AreNotEqual<string>("12.1", Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site), "The Options element is not supported when the MS-ASProtocolVersion header is set to 12.1. MS-ASProtocolVersion header value is determined using Common PTFConfig property named ActiveSyncProtocolVersion.");
#region Call Sync command with 2 MaxItems elements on RI.
this.Sync(TestSuiteBase.CreateEmptySyncRequest(this.User1Information.RecipientInformationCacheCollectionId));
Request.Options option = new Request.Options
{
Items = new object[] { "2", "3" },
ItemsElementName = new Request.ItemsChoiceType1[] { Request.ItemsChoiceType1.MaxItems, Request.ItemsChoiceType1.MaxItems }
};
GetItemEstimateRequest getItemEstimateRequest = TestSuiteBase.CreateGetItemEstimateRequest(this.LastSyncKey, this.User1Information.RecipientInformationCacheCollectionId, new Request.Options[] { option });
GetItemEstimateResponse getItemEstimateResponse = CMDAdapter.GetItemEstimate(getItemEstimateRequest);
if (Common.IsRequirementEnabled(3272, this.Site))
{
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCMD_R3272");
// Verify MS-ASCMD requirement: MS-ASCMD_R3272
Site.CaptureRequirementIfAreEqual<int>(
1,
int.Parse(getItemEstimateResponse.ResponseData.Response[0].Status),
3272,
@"[In Appendix A: Product Behavior] The implementation does not return a protocol status error in response to such a command request [more than one airsync:MaxItems element as the child of the airsync:Options element is undefined]. (Exchange 2007 and above follow this behavior.)");
}
#endregion
}