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

Inheritance: Microsoft.Protocols.TestTools.TestClassBase
Afficher le fichier Open project: OfficeDev/Interop-TestSuites Class Usage Examples

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat string

GetCookieName() protected méthode

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.
Résultat string

GetCookieNumber() protected méthode

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.
Résultat int

TestCleanup() protected méthode

Clean up the test.
protected TestCleanup ( ) : void
Résultat void

TestInitialize() protected méthode

Initialize the test.
protected TestInitialize ( ) : void
Résultat void