C# Class Wv.Test.WvTest

Afficher le fichier Open project: apenwarr/wvtest Class Usage Examples

Méthodes publiques

Méthode Description
DoMain ( ) : void
RegisterTest ( string name, System.Action tc ) : void
Run ( ) : int
WvTest ( )
booleanize ( bool x ) : bool
booleanize ( long x ) : bool
booleanize ( object o ) : bool
booleanize ( string s ) : bool
booleanize ( ulong x ) : bool
expect_next_failure ( ) : void
test ( bool ok, string file, int line, string s ) : bool
test_eq ( IComparable cond1, IComparable cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( bool cond1, bool cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( decimal cond1, decimal cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( double cond1, double cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( long cond1, long cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( object cond1, object cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( string cond1, string cond2, string file, int line, string s1, string s2 ) : bool
test_eq ( ulong cond1, ulong cond2, string file, int line, string s1, string s2 ) : bool
test_exception ( string file, int line, string s ) : void
test_ne ( IComparable cond1, IComparable cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( bool cond1, bool cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( decimal cond1, decimal cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( double cond1, double cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( long cond1, long cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( object cond1, object cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( string cond1, string cond2, string file, int line, string s1, string s2 ) : bool
test_ne ( ulong cond1, ulong cond2, string file, int line, string s1, string s2 ) : bool

Method Details

DoMain() public static méthode

public static DoMain ( ) : void
Résultat void

RegisterTest() public méthode

public RegisterTest ( string name, System.Action tc ) : void
name string
tc System.Action
Résultat void

Run() public méthode

public Run ( ) : int
Résultat int

WvTest() public méthode

public WvTest ( )

booleanize() public static méthode

public static booleanize ( bool x ) : bool
x bool
Résultat bool

booleanize() public static méthode

public static booleanize ( long x ) : bool
x long
Résultat bool

booleanize() public static méthode

public static booleanize ( object o ) : bool
o object
Résultat bool

booleanize() public static méthode

public static booleanize ( string s ) : bool
s string
Résultat bool

booleanize() public static méthode

public static booleanize ( ulong x ) : bool
x ulong
Résultat bool

expect_next_failure() public static méthode

public static expect_next_failure ( ) : void
Résultat void

test() public static méthode

public static test ( bool ok, string file, int line, string s ) : bool
ok bool
file string
line int
s string
Résultat bool

test_eq() public static méthode

public static test_eq ( IComparable cond1, IComparable cond2, string file, int line, string s1, string s2 ) : bool
cond1 IComparable
cond2 IComparable
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( bool cond1, bool cond2, string file, int line, string s1, string s2 ) : bool
cond1 bool
cond2 bool
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( decimal cond1, decimal cond2, string file, int line, string s1, string s2 ) : bool
cond1 decimal
cond2 decimal
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( double cond1, double cond2, string file, int line, string s1, string s2 ) : bool
cond1 double
cond2 double
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( long cond1, long cond2, string file, int line, string s1, string s2 ) : bool
cond1 long
cond2 long
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( object cond1, object cond2, string file, int line, string s1, string s2 ) : bool
cond1 object
cond2 object
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( string cond1, string cond2, string file, int line, string s1, string s2 ) : bool
cond1 string
cond2 string
file string
line int
s1 string
s2 string
Résultat bool

test_eq() public static méthode

public static test_eq ( ulong cond1, ulong cond2, string file, int line, string s1, string s2 ) : bool
cond1 ulong
cond2 ulong
file string
line int
s1 string
s2 string
Résultat bool

test_exception() public static méthode

public static test_exception ( string file, int line, string s ) : void
file string
line int
s string
Résultat void

test_ne() public static méthode

public static test_ne ( IComparable cond1, IComparable cond2, string file, int line, string s1, string s2 ) : bool
cond1 IComparable
cond2 IComparable
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( bool cond1, bool cond2, string file, int line, string s1, string s2 ) : bool
cond1 bool
cond2 bool
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( decimal cond1, decimal cond2, string file, int line, string s1, string s2 ) : bool
cond1 decimal
cond2 decimal
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( double cond1, double cond2, string file, int line, string s1, string s2 ) : bool
cond1 double
cond2 double
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( long cond1, long cond2, string file, int line, string s1, string s2 ) : bool
cond1 long
cond2 long
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( object cond1, object cond2, string file, int line, string s1, string s2 ) : bool
cond1 object
cond2 object
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( string cond1, string cond2, string file, int line, string s1, string s2 ) : bool
cond1 string
cond2 string
file string
line int
s1 string
s2 string
Résultat bool

test_ne() public static méthode

public static test_ne ( ulong cond1, ulong cond2, string file, int line, string s1, string s2 ) : bool
cond1 ulong
cond2 ulong
file string
line int
s1 string
s2 string
Résultat bool