public void MSASCAL_S01_TC21_Status6WithMultiCalendarType()
{
#region Create calendars with different Type element value.
Site.Assume.AreNotEqual<string>("12.1", Common.GetConfigurationPropertyValue("ActiveSyncProtocolVersion", this.Site), "The CalendarType 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.");
// Add a calendar with more than one CalendarType when type is 2.
byte type = 2;
SyncStore syncAddResponse1 = this.AddCalendarWithMultipleCalendarType(type.ToString());
// Add a calendar with more than one CalendarType when type is 3.
type = 3;
SyncStore syncAddResponse2 = this.AddCalendarWithMultipleCalendarType(type.ToString());
// Add a calendar with more than one CalendarType when type is 5.
type = 5;
SyncStore syncAddResponse3 = this.AddCalendarWithMultipleCalendarType(type.ToString());
// Add a calendar with more than one CalendarType when type is 6.
type = 6;
SyncStore syncAddResponse4 = this.AddCalendarWithMultipleCalendarType(type.ToString());
#endregion
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASCAL_R53912");
// Verify MS-ASCAL requirement: MS-ASCAL_R53912
Site.CaptureRequirementIfIsTrue(
syncAddResponse1.AddResponses[0].Status == "6" && syncAddResponse2.AddResponses[0].Status == "6" && syncAddResponse3.AddResponses[0].Status == "6" && syncAddResponse4.AddResponses[0].Status == "6",
53912,
@"[In Sync Command Response][The Sync command response contains an airsync:Status element ([MS-ASCMD] section 2.2.3.162.16) with a value of 6 in the following cases:] A command request has more than one CalendarType element (section 2.2.2.9) per Recurrence element (section 2.2.2.35) when the Type element (section 2.2.2.43) value is 2, 3, 5, or 6.");
}