Microsoft.Protocols.TestSuites.MS_ASAIRS.S02_BodyPreference.VerifyType C# (CSharp) Method

VerifyType() private method

Verify the Type element of an item.
private VerifyType ( Microsoft.Protocols.TestSuites.Common.DataStructures email, byte typeValue ) : void
email Microsoft.Protocols.TestSuites.Common.DataStructures The email item got from server.
typeValue byte The value of the Type element.
return void
        private void VerifyType(DataStructures.Email email, byte typeValue)
        {
            Site.Assert.IsNotNull(
                email.Body,
                "The Body element should be included in command response when the BodyPreference element is specified in command request.");

            Site.Assert.AreEqual<byte>(
                typeValue,
                email.Body.Type,
                "The Type value in command response should be {0}.",
                typeValue);
        }
        #endregion