C# Class Npgsql.Tests.TestUtil

显示文件 Open project: npgsql/npgsql Class Usage Examples

Public Methods

Method Description
GetUniqueIdentifier ( string prefix ) : string
IgnoreExceptOnBuildServer ( string message ) : void

Calls Assert.Ignore() unless we're on the build server, in which case calls Assert.Fail(). We don't to miss any regressions just because something was misconfigured at the build server and caused a test to be inconclusive.

MinimumPgVersion ( NpgsqlConnection conn, string minVersion, string ignoreText = null ) : void

Method Details

GetUniqueIdentifier() public static method

public static GetUniqueIdentifier ( string prefix ) : string
prefix string
return string

IgnoreExceptOnBuildServer() public static method

Calls Assert.Ignore() unless we're on the build server, in which case calls Assert.Fail(). We don't to miss any regressions just because something was misconfigured at the build server and caused a test to be inconclusive.
public static IgnoreExceptOnBuildServer ( string message ) : void
message string
return void

MinimumPgVersion() public static method

public static MinimumPgVersion ( NpgsqlConnection conn, string minVersion, string ignoreText = null ) : void
conn NpgsqlConnection
minVersion string
ignoreText string
return void