C# Class Microsoft.Protocols.TestSuites.MS_SITESS.AdapterHelper

The class provides the methods to assist MS-SITESSAdapter.
Exibir arquivo Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Public Methods

Method Description
CompareStringArrays ( string str1, string str2 ) : bool

Compare two string array's elements.

DeserializeWebProperties ( string prop, char itemSpliter, char keySpliter ) : string>.Dictionary

Deserialize web properties returned by the GetWebProperties method.

Initialize ( ITestSite testSiteInstance ) : void

Initialize this helper class with ITestSite.

MessageValidation ( string message, string schema ) : void

Validate whether an xml message follows the schema.

SiteResultDeserialize ( string getSiteResult ) : Site

Deserialize an xml string to a Site object.

Private Methods

Method Description
Schema_ValidationEventHandler ( object sender, ValidationEventArgs args ) : void

The callback method that will handle XML schema validation events.

Method Details

CompareStringArrays() public static method

Compare two string array's elements.
public static CompareStringArrays ( string str1, string str2 ) : bool
str1 string The first string array to be compared.
str2 string The second string array to be compared.
return bool

DeserializeWebProperties() public static method

Deserialize web properties returned by the GetWebProperties method.
public static DeserializeWebProperties ( string prop, char itemSpliter, char keySpliter ) : string>.Dictionary
prop string Web properties string value.
itemSpliter char The char value for item split.
keySpliter char The char value for key and value split.
return string>.Dictionary

Initialize() public static method

Initialize this helper class with ITestSite.
public static Initialize ( ITestSite testSiteInstance ) : void
testSiteInstance ITestSite An object provides logging, assertions, and SUT adapters for test code onto its execution context.
return void

MessageValidation() public static method

Validate whether an xml message follows the schema.
public static MessageValidation ( string message, string schema ) : void
message string The xml message.
schema string The schema of the message.
return void

SiteResultDeserialize() public static method

Deserialize an xml string to a Site object.
public static SiteResultDeserialize ( string getSiteResult ) : Site
getSiteResult string The xml string returned from the GetSite operation.
return Site