C# Class Microsoft.Protocols.TestSuites.MS_AUTHWS.TestSuiteBase

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Show file Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Protected Methods

Method Description
GenerateRandomString ( int size ) : string

This method is used to generate random string in the range A-Z with the specified string size.

GetCookieName ( int cookieIndex, CookieContainer cookieContainer ) : string

This method is used to get the specified cookie name exists on the server.

GetCookieNumber ( CookieContainer cookieContainer ) : int

This method is used to get count of the cookies exist on the server.

TestCleanup ( ) : void

Clean up the test.

TestInitialize ( ) : void

Initialize the test.

Private Methods

Method Description
ClassCleanup ( ) : void
ClassInitialize ( Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext ) : void
GetFormsAuthenticationServiceUrl ( ) : string

This method is used to get the Forms Authentication Service Url on the server.

Method Details

GenerateRandomString() protected method

This method is used to generate random string in the range A-Z with the specified string size.
protected GenerateRandomString ( int size ) : string
size int A parameter represents the generated string size.
return string

GetCookieName() protected method

This method is used to get the specified cookie name exists on the server.
protected GetCookieName ( int cookieIndex, CookieContainer cookieContainer ) : string
cookieIndex int The cookie index which name to be returned.
cookieContainer System.Net.CookieContainer The cookie container which contains the specified cookie.
return string

GetCookieNumber() protected method

This method is used to get count of the cookies exist on the server.
protected GetCookieNumber ( CookieContainer cookieContainer ) : int
cookieContainer System.Net.CookieContainer The cookie container which contains the specified cookie.
return int

TestCleanup() protected method

Clean up the test.
protected TestCleanup ( ) : void
return void

TestInitialize() protected method

Initialize the test.
protected TestInitialize ( ) : void
return void