Microsoft.Protocols.TestSuites.MS_ASPROV.MS_ASPROVAdapter.VerifyUnsignedByteStructure C# (CSharp) Method

VerifyUnsignedByteStructure() private method

This method is used to verify the unsignedByte related requirements.
private VerifyUnsignedByteStructure ( byte byteValue ) : void
byteValue byte A byte value.
return void
        private void VerifyUnsignedByteStructure(byte? byteValue)
        {
            // If the schema validation is successful, then following requirements can be captured.
            Site.Assert.IsTrue(this.activeSyncClient.ValidationResult, "Schema validation should be successful.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASDTYPE_R123");

            // Verify MS-ASDTYPE requirement: MS-ASDTYPE_R123
            Site.CaptureRequirementIfIsTrue(
                (byteValue >= 0) && (byteValue <= 255),
                "MS-ASDTYPE",
                123,
                @"[In unsignedByte Data Type] The unsignedByte data type is an integer value between 0 and 255, inclusive.");

            // Add the debug information
            Site.Log.Add(LogEntryKind.Debug, "Verify MS-ASDTYPE_R125");

            // Verify MS-ASDTYPE requirement: MS-ASDTYPE_R125
            Site.CaptureRequirement(
                "MS-ASDTYPE",
                125,
                @"[In unsignedByte Data Type] Elements of this type [unsignedByte type] are declared with an element whose type attribute is set to ""unsignedByte"".");
        }