C# Class Wv.Test.WvTest

Datei anzeigen Open project: apenwarr/wvtest Class Usage Examples

Public Methods

Method 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 method

public static DoMain ( ) : void
return void

RegisterTest() public method

public RegisterTest ( string name, System.Action tc ) : void
name string
tc System.Action
return void

Run() public method

public Run ( ) : int
return int

WvTest() public method

public WvTest ( )

booleanize() public static method

public static booleanize ( bool x ) : bool
x bool
return bool

booleanize() public static method

public static booleanize ( long x ) : bool
x long
return bool

booleanize() public static method

public static booleanize ( object o ) : bool
o object
return bool

booleanize() public static method

public static booleanize ( string s ) : bool
s string
return bool

booleanize() public static method

public static booleanize ( ulong x ) : bool
x ulong
return bool

expect_next_failure() public static method

public static expect_next_failure ( ) : void
return void

test() public static method

public static test ( bool ok, string file, int line, string s ) : bool
ok bool
file string
line int
s string
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_eq() public static method

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
return bool

test_exception() public static method

public static test_exception ( string file, int line, string s ) : void
file string
line int
s string
return void

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool

test_ne() public static method

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
return bool