public void MSASEMAIL_S01_TC09_WithoutAnyEmailClassPropertiesChanged()
{
#region Call method SendMail to send an email.
string emailSubject = Common.GenerateResourceName(Site, "subject");
this.SendPlaintextEmail(emailSubject, string.Empty, string.Empty);
#endregion
#region Call Sync command with Change element to add flag and categories for the e-mail item and synchronize it with the server.
// Get the email item
SyncStore getEmailItem = this.GetSyncResult(emailSubject, this.User2Information.InboxCollectionId, null);
Sync item = TestSuiteHelper.GetSyncAddItem(getEmailItem, emailSubject);
// Get the result of adding flag and categories
SyncStore getChangedResult = this.AddFlagAndCategories(this.User2Information.InboxCollectionId, getEmailItem.SyncKey, item.ServerId);
item = TestSuiteHelper.GetSyncChangeItem(getChangedResult, item.ServerId);
Site.Assert.IsNotNull(item, "The message with subject {0} should be found in the folder {1} of user {2}.", emailSubject, FolderType.Inbox.ToString(), this.User2Information.UserName);
#endregion
#region Call Sync command with Change element but without changing any property to synchronize the item.
SyncRequest syncRequest = TestSuiteHelper.CreateSyncRequest(getChangedResult.SyncKey, this.User2Information.InboxCollectionId, null);
SyncStore syncChangedResult = this.EMAILAdapter.Sync(syncRequest);
#endregion
#region Verify requirement
// Add the debug information
Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASEMAIL_R1018");
// Verify MS-ASEMAIL requirement: MS-ASEMAIL_R81
// According to the definition of SyncStore, if the count of ChangeElements in syncChangedResult is 0 which means the Collections element in Sync Response is empty,
// then requirement MS-ASEAMIL_R81 can be captured.
Site.CaptureRequirementIfAreEqual<int>(
0,
syncChangedResult.ChangeElements.Count,
81,
@"[In Sending E-Mail Changes to the Client] If Read flag, Flag properties, Other E-mail class properties and Non-E-mail class properties not changed, the Server action for e-mail item in Sync command response is: Send nothing to client.");
#endregion
}
#endregion