C# Class Selenium.Verify

Inheritance: _Verify
Exibir arquivo Open project: florentbr/SeleniumBasic

Public Methods

Method Description
Contains ( string value, string input, string failmessage = null ) : string

Tests that an input does not contain a value.

Equals ( object expected, object input, string failmessage = null ) : string

Tests that two objects are equal.

False ( bool input, string failmessage = null ) : string

Tests that an input is false.

Matches ( string pattern, string input, string failmessage = null ) : string

Tests that an input matches a regular expression pattern.

NotEquals ( object expected, object input, string failmessage = null ) : string

Tests that two objects are not equal.

NotMatches ( string pattern, string input, string failmessage = null ) : string

Tests that an input does not matche a regular expression pattern.

True ( bool input, string failmessage = null ) : string

Tests that an input is true.

Verify ( ) : Selenium.ComInterfaces

Create a Verify object.

Private Methods

Method Description
_Verify ( bool input, string failmessage ) : string

Tests that an input is true.

_Verify ( object expected, object input, string failmessage ) : string

Tests that two objects are equal.

_Verify ( string pattern, string input, string failmessage ) : string

Tests that an input matches a regular expression pattern.

format ( string message, string template, object arg1, object arg2 ) : string

Method Details

Contains() public static method

Tests that an input does not contain a value.
public static Contains ( string value, string input, string failmessage = null ) : string
value string
input string
failmessage string
return string

Equals() public static method

Tests that two objects are equal.
public static Equals ( object expected, object input, string failmessage = null ) : string
expected object expected object. Can be a string, number, array...
input object current object. Can be a string, number, array...
failmessage string Message to return if the verification fails...
return string

False() public static method

Tests that an input is false.
public static False ( bool input, string failmessage = null ) : string
input bool
failmessage string
return string

Matches() public static method

Tests that an input matches a regular expression pattern.
public static Matches ( string pattern, string input, string failmessage = null ) : string
pattern string
input string
failmessage string
return string

NotEquals() public static method

Tests that two objects are not equal.
public static NotEquals ( object expected, object input, string failmessage = null ) : string
expected object expected object. Can be a string, number, array...
input object current object. Can be a string, number, array...
failmessage string Message to return if the verification fails...
return string

NotMatches() public static method

Tests that an input does not matche a regular expression pattern.
public static NotMatches ( string pattern, string input, string failmessage = null ) : string
pattern string
input string
failmessage string
return string

True() public static method

Tests that an input is true.
public static True ( bool input, string failmessage = null ) : string
input bool
failmessage string
return string

Verify() public method

Create a Verify object.
public Verify ( ) : Selenium.ComInterfaces
return Selenium.ComInterfaces