Метод | Описание | |
---|---|---|
AddInt16LengthBeforeBinaryArray ( byte bytes ) : byte[] |
Add bytes length to the first two bytes of the new array, and append bytes to the new array
|
|
CompareByteArray ( byte bytes1, byte bytes2 ) : bool |
Compare two byte arrays
|
|
CompressAndObfuscateRequest ( byte inputStream, ITestSite site ) : byte[] |
Compresses stream using LZ77 algorithm if CompressRpcRequest is set to true in configuration, and obfuscates stream if XorRpcRequest is set to true in configuration. If none of the properties is true, the original stream is returned.
|
|
CompressStream ( byte inputStream ) : byte[] |
Compresses payload in the stream with LZ77 algorithm and updates the header.
|
|
ConvertActiveSyncProtocolVersion ( string originalVersion, ITestSite site ) : string |
Convert the ActiveSyncProtocolVersion gotten from ptfconfig file to the string could be used in ActiveSyncClient.
|
|
ConvertByteArrayToUint ( byte bytes ) : uint |
Convert a byte array to an unsigned integer. If the length of byte array is greater than 4, just convert the first 4 bytes.
|
|
CreateAutodiscoverRequest ( string emailAddress, string acceptableResponseSchema ) : AutodiscoverRequest |
Creates an Autodiscover request
|
|
CreateFolderCreateRequest ( ) : FolderCreateRequest |
Creates an empty FolderCreateRequest instance
|
|
CreateFolderCreateRequest ( string syncKey, byte type, string displayName, string parentId ) : FolderCreateRequest |
Creates a FolderCreateRequest instance using the specified information
|
|
CreateFolderDeleteRequest ( ) : FolderDeleteRequest |
Creates an empty FolderDeleteRequest instance
|
|
CreateFolderDeleteRequest ( string syncKey, string serverId ) : FolderDeleteRequest |
Creates a FolderDeleteRequest instance using the specified information
|
|
CreateFolderSyncRequest ( string syncKey ) : FolderSyncRequest |
Creates a folder Sync request using specified syncKey
|
|
CreateFolderUpdateRequest ( ) : FolderUpdateRequest |
Creates an empty FolderUpdateRequest instance
|
|
CreateFolderUpdateRequest ( string syncKey, string serverId, string displayName, string parentId ) : FolderUpdateRequest |
Creates an empty FolderUpdateRequest instance
|
|
CreateGetAttachmentRequest ( ) : GetAttachmentRequest |
Create GetAttachmentRequest instance, because there is XML body for the GetAttachment command, then the RequestData always will be null
|
|
CreateGetItemEstimateRequest ( ) : GetItemEstimateRequest |
Creates an empty GetItemEstimateRequest instance
|
|
CreateGetItemEstimateRequest ( Request collections ) : GetItemEstimateRequest |
Creates a GetItemEstimateRequest using the specified GetItemEstimateCollection array
|
|
CreateInitialSyncRequest ( string collectionId ) : SyncRequest |
Create an initial Sync request.
|
|
CreateItemOperationsRequest ( ) : ItemOperationsRequest |
Creates an empty ItemOperationsRequest instance
|
|
CreateItemOperationsRequest ( object items ) : ItemOperationsRequest |
Creates an ItemOperationsRequest instance using specified items
|
|
CreateMeetingRequestMime ( string from, string to, string subject, string body, string icalendarContent ) : string |
Create a meeting request mime
|
|
CreateMeetingResponseRequest ( ) : MeetingResponseRequest |
Create an empty MeetingResponseRequest instance
|
|
CreateMeetingResponseRequest ( Request requests ) : MeetingResponseRequest |
Create a MeetingResponseRequest instance using specified MeetingResponseRequest array
|
|
CreateMoveItemsRequest ( ) : MoveItemsRequest |
Create an empty MoveItemsRequest instance
|
|
CreateMoveItemsRequest ( Request items ) : MoveItemsRequest |
Create a MoveItemsRequest instance using specified MoveItemsMove array
|
|
CreatePingRequest ( ) : PingRequest |
Create an empty PingRequest instance
|
|
CreatePingRequest ( Request folders, string heartbeatInterval ) : PingRequest |
Create a PingRequest instance using specified PingFolder array and heartbeatInterval
|
|
CreatePlainTextMime ( string from, string to, string cc, string bcc, string subject, string body, string sender = null, string replyTo = null ) : string |
Create a sample plain text mime
|
|
CreateProvisionRequest ( ) : ProvisionRequest |
Create an empty ProvisionRequest instance
|
|
CreateProvisionRequest ( Request deviceInformation, Request policies, Request remoteWipe ) : ProvisionRequest |
Create a ProvisionRequest instance using specified information
|
|
CreateResolveRecipientsRequest ( ) : ResolveRecipientsRequest |
Create an empty ResolveRecipientsRequest instance
|
|
CreateResolveRecipientsRequest ( object items ) : ResolveRecipientsRequest |
Create a ResolveRecipientsRequest instance using specified information
|
|
CreateSearchRequest ( ) : SearchRequest |
Create an empty SearchRequest instance
|
|
CreateSearchRequest ( Request searchStores ) : SearchRequest |
Create a SearchRequest using specified information
|
|
CreateSearchRequest ( string keyword, string folderCollectionId ) : SearchRequest |
Create a Search request using the specified keyword and folder collection ID
|
|
CreateSendMailRequest ( ) : SendMailRequest |
Create an empty SendMailRequest instance
|
|
CreateSendMailRequest ( string clientId, bool copyToSentItems, string mime ) : SendMailRequest |
Builds a SendMail request by using the specified client Id, copyToSentItems option and mail mime content.
|
|
CreateSendMailRequest ( string accountId, string clientId, string mime ) : SendMailRequest |
Create a SendMailRequest instance using specified information
|
|
CreateSettingsRequest ( ) : SettingsRequest |
Create an empty SettingsRequest instance
|
|
CreateSmartForwardRequest ( ) : SmartForwardRequest |
Create an empty SmartForwardRequest instance
|
|
CreateSmartForwardRequest ( string accountId, string clientId, string mime, Request source ) : SmartForwardRequest |
Create a SmartForwardRequest instance using specified information
|
|
CreateSmartReplyRequest ( ) : SmartReplyRequest |
Create an empty SmartReplyRequest instance
|
|
CreateSmartReplyRequest ( string accountId, string clientId, string mime, Request source ) : SmartReplyRequest |
Create a SmartReplyRequest instance using specified information
|
|
CreateSyncRequest ( ) : SyncRequest |
Creates an empty Sync request
|
|
CreateSyncRequest ( Request syncCollections ) : SyncRequest |
Creates a Sync request using the specified SyncCollection array
|
|
CreateValidateCertRequest ( ) : ValidateCertRequest |
Create an empty ValidateCertRequest instance
|
|
CreateValidateCertRequest ( byte certificates ) : ValidateCertRequest |
Create a ValidateCertRequest by specified the certificates in the byte[][] format
|
|
DecompressStream ( byte inputStream ) : byte[] |
Decompresses payload in the stream with LZ77 algorithm and updates the header.
|
|
FormatBinaryDate ( byte content, int line = 16, int column = 16 ) : string |
Format the raw data of Rop request and response.
|
|
FormatString ( string format ) : string |
Extension of string.Format to use the string as the object to be formatted. When the string argument is null, this extension will treat it as string.Empty
|
|
GeneratePrefixOfResourceName ( ITestSite site ) : string |
A method used to generate the prefix of a resource name based on the current test case name. For example, if the current test case name is "MSOXCRPC_S01_TC01_TestEcDoConnectEx", the prefix will be "MSOXCRPC_S01_TC01".
|
|
GenerateResourceName ( ITestSite site, string resourceName ) : string |
A method used to generate a unique name with protocol short name (without dash "-"), resource name and time stamp.
|
|
GenerateResourceName ( ITestSite site, string resourceName, uint index ) : string |
A method used to generate a unique name with protocol short name (without dash "-"), resource name, index and time stamp when creating multiple resources of the same type.
|
|
GetBytesFromBinaryHexString ( string str ) : byte[] |
Convert a hex16 string to byte array
|
|
GetBytesFromMutiUnicodeString ( string strs ) : byte[] |
Convert a string array to byte array
|
|
GetBytesFromUnicodeString ( string str ) : byte[] |
Convert a string to byte array.
|
|
GetCodePageName ( string combinedString ) : string |
Get the CodePageName from the CombinedString
|
|
GetConfigurationPropertyValue ( string propertyName, ITestSite site ) : string |
Get a specified property value from ptfconfig file.
|
|
GetContentTypeHeader ( string headerValue ) : string |
Get the Content-Type header.
|
|
GetDefaultFolderServerId ( FolderSyncResponse folderSyncResponse, |
Get the server ID for the given default folder type in the actual FolderSyncResponse.
|
|
GetErrorCodeFromException ( |
Get status code from web exception which will be returned by IIS.
|
|
GetMailAddress ( string userName, string domain ) : string |
Get mailbox by user name and domain.
|
|
GetNoSeparatorDateTime ( string time ) : System.DateTime |
Try to parse the no separator time string to DateTime
|
|
GetSearchStatusCode ( SendStringResponse response ) : string |
Get search response status which returned by the SendStringRequest operation.
|
|
GetStringFromBinary ( byte bytes, bool isFirstTwoByteStoreLength ) : string |
Get string from the byte array. If the byte array contains length, remove the first four byte
|
|
GetSutVersion ( ITestSite site ) : SutVersion |
Get SUT version.
|
|
GetTagName ( string combinedTagAndToken, byte &matchedToken ) : string |
Get tag name and token.
|
|
GetTimeZone ( string name, int bias ) : string |
Get the TimeZone string which is base64 encoded according the specified name and bias. For detailed algorithm refer to [MS-ASDTYPE] 2.6.4 TimeZone
|
|
IsDNMatchABNF ( string dn, DNFormat format ) : bool |
To determine whether the DN matches regular expression or not. The regular expression is generated according to the ABNF in [MS-OXOABK] section 2.2.1.1.
|
|
IsGUID ( byte bytes ) : bool |
Check whether the byte array is GUID or not
|
|
IsNullTerminatedASCIIStr ( byte bytes ) : bool |
Check whether the byte array is null terminated ASCII string.
|
|
IsOutputHandleInRopRequest ( ISerializable ropRequest ) : bool |
Identify whether the Rop request contains more than one server object handle. Refers to [MS-OXCROPS] for more details.
|
|
IsRequirementEnabled ( int requirementId, ITestSite site ) : bool |
Check whether the specified requirement is enabled to run or not.
|
|
IsStringBase64Encoded ( string stringData ) : bool |
This method is used to verify whether the data element is Base64Encoding
|
|
IsUtf16LEString ( byte bytes ) : bool |
Check whether a byte array is a valid utf16 encoding or not
|
|
LoadAddElements ( Response collectionCommands, Collection |
Load sync collection Add elements which are not sync until this sync
|
|
LoadChangeElements ( Response collectionCommands, Collection |
Load Change elements in Sync response
|
|
LoadDeleteElements ( Response collectionCommands, Collection |
Load Delete elements in Sync response
|
|
LoadItemOperationsResponse ( |
Convert the ItemOperationsResponse to ItemOperationsStore
|
|
LoadSearchResponse ( |
Load the SearchStore from the SearchResponse
|
|
LoadSyncResponse ( SyncResponse response ) : |
Load SyncResponse to SyncStore.
|
|
MergeConfiguration ( ITestSite site ) : void |
Merge common configuration and SHOULD/MAY configuration files.
|
|
MergeConfigurationFile ( string configFilename, ITestSite site ) : void |
Merge the properties from the specified ptfconfig file.
|
|
MergeGlobalConfig ( string globalConfigFilename, ITestSite site ) : void |
Merge the properties from the global ptfconfig file.
|
|
MergeSHOULDMAYConfig ( ITestSite site ) : void |
Merge the properties from the SHOULD/MAY ptfconfig file.
|
|
RecordCreatedItem ( string collectionId, string itemSubject ) : CreatedItems |
Record items impacted by current test case.
|
|
SetSpecifiedPropertyValueByName ( object targetObject, string propertyName, object value ) : void |
Set a value in the target object using the specified property name
|
|
ToArray ( this nodes ) : XmlNode[] |
Extend XmlNodeList can convert to an XmlNode array
|
|
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool |
Verify the remote Secure Sockets Layer (SSL) certificate used for authentication.
|
|
VerifyActualValues ( string elementName, string expectedValues, string actualValue, ITestSite site ) : void |
Get all the valid values of one element
|
|
XOR ( byte inputStream ) : byte[] |
Obfuscates or reverts payload in the stream by applying XOR to each byte of the data with the value 0xA5 and updates the header.
|
Метод | Описание | |
---|---|---|
FormatCurrentDateTime ( ) : string |
Format the current timestamp to this format "HHmmss_fff".
|
|
LZ77Compress ( byte inputStream ) : byte[] |
Compresses stream using LZ77 algorithm and encodes using Direct2 algorithm.
|
|
LZ77Decompress ( byte inputStream, int actualSize ) : byte[] |
Decodes stream using Direct2 algorithm and decompresses using LZ77 algorithm.
|
public static AddInt16LengthBeforeBinaryArray ( byte bytes ) : byte[] | ||
bytes | byte | Original byte array |
Результат | byte[] |
public static CompareByteArray ( byte bytes1, byte bytes2 ) : bool | ||
bytes1 | byte | The first byte array |
bytes2 | byte | The second byte array |
Результат | bool |
public static CompressAndObfuscateRequest ( byte inputStream, ITestSite site ) : byte[] | ||
inputStream | byte | The stream to be compressed and obfuscated. The stream should contain header and payload. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
Результат | byte[] |
public static CompressStream ( byte inputStream ) : byte[] | ||
inputStream | byte | The stream to be compressed. The stream should contain header and payload. |
Результат | byte[] |
public static ConvertActiveSyncProtocolVersion ( string originalVersion, ITestSite site ) : string | ||
originalVersion | string | The original ActiveSyncProtocolVersion gotten from ptfconfig file. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
Результат | string |
public static ConvertByteArrayToUint ( byte bytes ) : uint | ||
bytes | byte | The byte array to be converted |
Результат | uint |
public static CreateAutodiscoverRequest ( string emailAddress, string acceptableResponseSchema ) : AutodiscoverRequest | ||
emailAddress | string | An email address |
acceptableResponseSchema | string | Acceptable response schema |
Результат | AutodiscoverRequest |
public static CreateFolderCreateRequest ( ) : FolderCreateRequest | ||
Результат | FolderCreateRequest |
public static CreateFolderCreateRequest ( string syncKey, byte type, string displayName, string parentId ) : FolderCreateRequest | ||
syncKey | string | The syncKey of this request |
type | byte | The type of created folder |
displayName | string | The display name of the folder |
parentId | string | The parentId of the created folder |
Результат | FolderCreateRequest |
public static CreateFolderDeleteRequest ( ) : FolderDeleteRequest | ||
Результат | FolderDeleteRequest |
public static CreateFolderDeleteRequest ( string syncKey, string serverId ) : FolderDeleteRequest | ||
syncKey | string | The syncKey of this request |
serverId | string | Specified the deleted folder's server id |
Результат | FolderDeleteRequest |
public static CreateFolderSyncRequest ( string syncKey ) : FolderSyncRequest | ||
syncKey | string | Specified sync key |
Результат | FolderSyncRequest |
public static CreateFolderUpdateRequest ( ) : FolderUpdateRequest | ||
Результат | FolderUpdateRequest |
public static CreateFolderUpdateRequest ( string syncKey, string serverId, string displayName, string parentId ) : FolderUpdateRequest | ||
syncKey | string | The syncKey of this request |
serverId | string | Specified the updated folder's server id |
displayName | string | Specified new display name of the folder |
parentId | string | Specified new parentId of the created folder |
Результат | FolderUpdateRequest |
public static CreateGetAttachmentRequest ( ) : GetAttachmentRequest | ||
Результат | GetAttachmentRequest |
public static CreateGetItemEstimateRequest ( ) : GetItemEstimateRequest | ||
Результат | GetItemEstimateRequest |
public static CreateGetItemEstimateRequest ( Request collections ) : GetItemEstimateRequest | ||
collections | Request | Specified GetItemEstimateCollection array |
Результат | GetItemEstimateRequest |
public static CreateInitialSyncRequest ( string collectionId ) : SyncRequest | ||
collectionId | string | The server id of the folder to be synchronized. |
Результат | SyncRequest |
public static CreateItemOperationsRequest ( ) : ItemOperationsRequest | ||
Результат | ItemOperationsRequest |
public static CreateItemOperationsRequest ( object items ) : ItemOperationsRequest | ||
items | object | Specified object items array |
Результат | ItemOperationsRequest |
public static CreateMeetingRequestMime ( string from, string to, string subject, string body, string icalendarContent ) : string | ||
from | string | The from address of mail |
to | string | The to address of the mail |
subject | string | The subject of the mail |
body | string | The body content of the mail |
icalendarContent | string | The content of iCalendar required by this meeting |
Результат | string |
public static CreateMeetingResponseRequest ( ) : MeetingResponseRequest | ||
Результат | MeetingResponseRequest |
public static CreateMeetingResponseRequest ( Request requests ) : MeetingResponseRequest | ||
requests | Request | Specified the MeetingResponseRequest array |
Результат | MeetingResponseRequest |
public static CreateMoveItemsRequest ( ) : MoveItemsRequest | ||
Результат | MoveItemsRequest |
public static CreateMoveItemsRequest ( Request items ) : MoveItemsRequest | ||
items | Request | Specified the MoveItemsMove array |
Результат | MoveItemsRequest |
public static CreatePingRequest ( ) : PingRequest | ||
Результат | PingRequest |
public static CreatePingRequest ( Request folders, string heartbeatInterval ) : PingRequest | ||
folders | Request | Specified PingFolder array |
heartbeatInterval | string | Specified heartbeatInterval |
Результат | PingRequest |
public static CreatePlainTextMime ( string from, string to, string cc, string bcc, string subject, string body, string sender = null, string replyTo = null ) : string | ||
from | string | The from address of mail |
to | string | The to address of the mail |
cc | string | The cc address of the mail |
bcc | string | The bcc address of the mail |
subject | string | The subject of the mail |
body | string | The body content of the mail |
sender | string | The sender of the mail |
replyTo | string | The replyTo of the mail |
Результат | string |
public static CreateProvisionRequest ( ) : ProvisionRequest | ||
Результат | ProvisionRequest |
public static CreateProvisionRequest ( Request deviceInformation, Request policies, Request remoteWipe ) : ProvisionRequest | ||
deviceInformation | Request | Specified the device information |
policies | Request | Specified the policies |
remoteWipe | Request | Specified the remoteWipe |
Результат | ProvisionRequest |
public static CreateResolveRecipientsRequest ( ) : ResolveRecipientsRequest | ||
Результат | ResolveRecipientsRequest |
public static CreateResolveRecipientsRequest ( object items ) : ResolveRecipientsRequest | ||
items | object | Specified the resolve recipients items |
Результат | ResolveRecipientsRequest |
public static CreateSearchRequest ( ) : SearchRequest | ||
Результат | SearchRequest |
public static CreateSearchRequest ( Request searchStores ) : SearchRequest | ||
searchStores | Request | Specified SearchStore arrays |
Результат | SearchRequest |
public static CreateSearchRequest ( string keyword, string folderCollectionId ) : SearchRequest | ||
keyword | string | Specify a string value for which to search. |
folderCollectionId | string | Specify the folder in which to search. |
Результат | SearchRequest |
public static CreateSendMailRequest ( ) : SendMailRequest | ||
Результат | SendMailRequest |
public static CreateSendMailRequest ( string clientId, bool copyToSentItems, string mime ) : SendMailRequest | ||
clientId | string | Specify the client Id |
copyToSentItems | bool | Specify whether needs to store a mail copy to sent items |
mime | string | Specify the mail mime |
Результат | SendMailRequest |
public static CreateSendMailRequest ( string accountId, string clientId, string mime ) : SendMailRequest | ||
accountId | string | Specified the account Id |
clientId | string | Specified the client Id |
mime | string | Specified the mime |
Результат | SendMailRequest |
public static CreateSettingsRequest ( ) : SettingsRequest | ||
Результат | SettingsRequest |
public static CreateSmartForwardRequest ( ) : SmartForwardRequest | ||
Результат | SmartForwardRequest |
public static CreateSmartForwardRequest ( string accountId, string clientId, string mime, Request source ) : SmartForwardRequest | ||
accountId | string | Specified the account Id |
clientId | string | Specified the client Id |
mime | string | Specified the mime |
source | Request | Specified the SmartForwardSource |
Результат | SmartForwardRequest |
public static CreateSmartReplyRequest ( ) : SmartReplyRequest | ||
Результат | SmartReplyRequest |
public static CreateSmartReplyRequest ( string accountId, string clientId, string mime, Request source ) : SmartReplyRequest | ||
accountId | string | Specified the account Id |
clientId | string | Specified the client Id |
mime | string | Specified the mime |
source | Request | Specified the SmartReplySource |
Результат | SmartReplyRequest |
public static CreateSyncRequest ( ) : SyncRequest | ||
Результат | SyncRequest |
public static CreateSyncRequest ( Request syncCollections ) : SyncRequest | ||
syncCollections | Request | Specified SyncCollection array |
Результат | SyncRequest |
public static CreateValidateCertRequest ( ) : ValidateCertRequest | ||
Результат | ValidateCertRequest |
public static CreateValidateCertRequest ( byte certificates ) : ValidateCertRequest | ||
certificates | byte | Specified the certificates |
Результат | ValidateCertRequest |
public static DecompressStream ( byte inputStream ) : byte[] | ||
inputStream | byte | The stream to be decompressed. The stream should contain header and payload. |
Результат | byte[] |
public static FormatBinaryDate ( byte content, int line = 16, int column = 16 ) : string | ||
content | byte | Raw data of Rops |
line | int | The line of the data to be displayed. |
column | int | The column of the data to be displayed. |
Результат | string |
public static FormatString ( string format ) : string | ||
format | string | A composite format string |
Результат | string |
public static GeneratePrefixOfResourceName ( ITestSite site ) : string | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
Результат | string |
public static GenerateResourceName ( ITestSite site, string resourceName ) : string | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
resourceName | string | A parameter that represents the resource name which is used to combine the unique name |
Результат | string |
public static GenerateResourceName ( ITestSite site, string resourceName, uint index ) : string | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
resourceName | string | A parameter that represents the resource name which is used to combine the unique name |
index | uint | A parameter that represents the index of the resources of the same type, which is used to combine the unique name |
Результат | string |
public static GetBytesFromBinaryHexString ( string str ) : byte[] | ||
str | string | The original hex16 string |
Результат | byte[] |
public static GetBytesFromMutiUnicodeString ( string strs ) : byte[] | ||
strs | string | The string array to be converted |
Результат | byte[] |
public static GetBytesFromUnicodeString ( string str ) : byte[] | ||
str | string | The string to be converted |
Результат | byte[] |
public static GetCodePageName ( string combinedString ) : string | ||
combinedString | string | a string contain tag name and matched token following the format"identifier|CodePageName|TagName|Token" |
Результат | string |
public static GetConfigurationPropertyValue ( string propertyName, ITestSite site ) : string | ||
propertyName | string | The name of property. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
Результат | string |
public static GetContentTypeHeader ( string headerValue ) : string | ||
headerValue | string | The string included charset and type in the Content-Type header. |
Результат | string |
public static GetDefaultFolderServerId ( FolderSyncResponse folderSyncResponse, |
||
folderSyncResponse | FolderSyncResponse | A FolderSyncResponse returned by previous ActiveSync FolderSync operation. |
folderType | Specify the default folder type. | |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
Результат | string |
public static GetErrorCodeFromException ( |
||
webException | Web exception | |
Результат | string |
public static GetMailAddress ( string userName, string domain ) : string | ||
userName | string | The user name. |
domain | string | The domain in which the user is. |
Результат | string |
public static GetNoSeparatorDateTime ( string time ) : System.DateTime | ||
time | string | The specified DateTime string |
Результат | System.DateTime |
public static GetSearchStatusCode ( SendStringResponse response ) : string | ||
response | SendStringResponse | The SendStringResponse instance |
Результат | string |
public static GetStringFromBinary ( byte bytes, bool isFirstTwoByteStoreLength ) : string | ||
bytes | byte | The byte array contains string |
isFirstTwoByteStoreLength | bool | Determine if the byte array contains length |
Результат | string |
public static GetSutVersion ( ITestSite site ) : SutVersion | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
Результат | SutVersion |
public static GetTagName ( string combinedTagAndToken, byte &matchedToken ) : string | ||
combinedTagAndToken | string | A string contain tag name and matched token following the format"identifier|CodePageName|TagName|Token" |
matchedToken | byte | Output the matched Token |
Результат | string |
public static GetTimeZone ( string name, int bias ) : string | ||
name | string | The StandardName or DaylightName for TimeZone |
bias | int | The offset from UTC |
Результат | string |
public static IsDNMatchABNF ( string dn, DNFormat format ) : bool | ||
dn | string | The distinguished name value to be matched. |
format | DNFormat | The DN format needs to be matched. |
Результат | bool |
public static IsGUID ( byte bytes ) : bool | ||
bytes | byte | The byte array to be checked |
Результат | bool |
public static IsNullTerminatedASCIIStr ( byte bytes ) : bool | ||
bytes | byte | The byte array to be checked |
Результат | bool |
public static IsOutputHandleInRopRequest ( ISerializable ropRequest ) : bool | ||
ropRequest | ISerializable | ROP request objects. |
Результат | bool |
public static IsRequirementEnabled ( int requirementId, ITestSite site ) : bool | ||
requirementId | int | The unique requirement number. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
Результат | bool |
public static IsStringBase64Encoded ( string stringData ) : bool | ||
stringData | string | The data value |
Результат | bool |
public static IsUtf16LEString ( byte bytes ) : bool | ||
bytes | byte | The byte array to be checked |
Результат | bool |
public static LoadAddElements ( Response collectionCommands, Collection |
||
collectionCommands | Response | The add operation response |
addElements | Collection |
The collection to be loaded in |
Результат | void |
public static LoadChangeElements ( Response collectionCommands, Collection |
||
collectionCommands | Response | The change operation response |
changeElements | Collection |
The collection to be loaded in |
Результат | void |
public static LoadDeleteElements ( Response collectionCommands, Collection |
||
collectionCommands | Response | The delete operation response |
deleteElements | Collection |
The collection to be loaded in |
Результат | void |
public static LoadItemOperationsResponse ( |
||
itemOperations | The returned ItemOperations response. | |
Результат |
public static LoadSearchResponse ( |
||
search | The returned Search response. | |
Результат |
public static LoadSyncResponse ( SyncResponse response ) : |
||
response | SyncResponse | A SyncResponse instance. |
Результат |
public static MergeConfiguration ( ITestSite site ) : void | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
Результат | void |
public static MergeConfigurationFile ( string configFilename, ITestSite site ) : void | ||
configFilename | string | ptfconfig filename. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
Результат | void |
public static MergeGlobalConfig ( string globalConfigFilename, ITestSite site ) : void | ||
globalConfigFilename | string | Global ptfconfig filename. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
Результат | void |
public static MergeSHOULDMAYConfig ( ITestSite site ) : void | ||
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context. |
Результат | void |
public static RecordCreatedItem ( string collectionId, string itemSubject ) : CreatedItems | ||
collectionId | string | The CollectionId of the folder which the item is placed. |
itemSubject | string | The subject of the item to delete. |
Результат | CreatedItems |
public static SetSpecifiedPropertyValueByName ( object targetObject, string propertyName, object value ) : void | ||
targetObject | object | The target object |
propertyName | string | The property name |
value | object | The property value |
Результат | void |
public static ToArray ( this nodes ) : XmlNode[] | ||
nodes | this | The XmlNodeList array |
Результат | XmlNode[] |
public static ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool | ||
sender | object | An object that contains state information for this validation. |
certificate | X509Certificate | The certificate used to authenticate the remote party. |
chain | X509Chain | The chain of certificate authorities associated with the remote certificate. |
sslPolicyErrors | SslPolicyErrors | One or more errors associated with the remote certificate. |
Результат | bool |
public static VerifyActualValues ( string elementName, string expectedValues, string actualValue, ITestSite site ) : void | ||
elementName | string | The name of the element. |
expectedValues | string | The array of all expected values. |
actualValue | string | The actual value of one element. |
site | ITestSite | An instance of interface ITestSite which provides logging, assertions, and adapters for test code onto its execution context. |
Результат | void |
public static XOR ( byte inputStream ) : byte[] | ||
inputStream | byte | The stream to be obfuscated or reverted. The stream should contain header and payload. |
Результат | byte[] |