C# Class Goedel.Debug.Trace

Collection of static methods that provide debugging utilities.
Exibir arquivo Open project: hallambaker/Mathematical-Mesh

Public Methods

Method Description
AreEqual ( byte X, byte Y ) : bool

Perform pairwise test for equality on members of an array. Unlike the builtin functions, ensures debugger stops at useful position.

Assert ( string Text, bool Test ) : bool

Yet another assertion method.

AssertEqual ( string Text, byte X, byte Y ) : bool

Perform pairwise test for equality on members of an array. Unlike the builtin functions, throws exception if fails.

AssertNotEqual ( string Text, byte X, byte Y ) : bool

Perform pairwise test for inequality on members of an array. Unlike the builtin functions, throws exception if fails.

HexToByte ( string input ) : byte[]

Convert string of hex data to byte array. [why isn't this in the conversions library?)

NYI ( string Report ) : void

Not Yet Implemented method. Cannot be disabled.

Spoil ( byte &Array ) : void

Spoil an element in the specified array.

Spoil ( byte Array, byte BadArray ) : void

Creates a clone of the input array with the first byte flipped.

TBS ( string Report ) : void

Not Yet Implemented method. Cannot be disabled.

Write ( string Text ) : void

Write the specified text to the debug output.

Write ( string Text, Object Data ) : void

Write formatted data to the debug output.

WriteHex ( string Text, byte Data ) : void

Write out a buffer to the console as hex.

WriteLine ( ) : void

Write a newline to the debug output.

WriteLine ( string Text ) : void

Output functions, pipe data to the console right now. In the future, will pipe to a file as well.

WriteLine ( string Text, Object Data ) : void

Write formatted data to the debug output with following newline.

Private Methods

Method Description
HexValue ( char c ) : int

Method Details

AreEqual() public static method

Perform pairwise test for equality on members of an array. Unlike the builtin functions, ensures debugger stops at useful position.
public static AreEqual ( byte X, byte Y ) : bool
X byte First array to compare
Y byte Second array to compare
return bool

Assert() public static method

Yet another assertion method.
public static Assert ( string Text, bool Test ) : bool
Text string Text to report.
Test bool Test value.
return bool

AssertEqual() public static method

Perform pairwise test for equality on members of an array. Unlike the builtin functions, throws exception if fails.
public static AssertEqual ( string Text, byte X, byte Y ) : bool
Text string Report for exception.
X byte First array to compare
Y byte Second array to compare
return bool

AssertNotEqual() public static method

Perform pairwise test for inequality on members of an array. Unlike the builtin functions, throws exception if fails.
public static AssertNotEqual ( string Text, byte X, byte Y ) : bool
Text string Report for exception.
X byte First array to compare
Y byte Second array to compare
return bool

HexToByte() public static method

Convert string of hex data to byte array. [why isn't this in the conversions library?)
public static HexToByte ( string input ) : byte[]
input string String to convert.
return byte[]

NYI() public static method

Not Yet Implemented method. Cannot be disabled.
public static NYI ( string Report ) : void
Report string Text to display on the console.
return void

Spoil() public static method

Spoil an element in the specified array.
public static Spoil ( byte &Array ) : void
Array byte The array to spoil.
return void

Spoil() public static method

Creates a clone of the input array with the first byte flipped.
public static Spoil ( byte Array, byte BadArray ) : void
Array byte input array
BadArray byte bad array
return void

TBS() public static method

Not Yet Implemented method. Cannot be disabled.
public static TBS ( string Report ) : void
Report string Text to display on the console.
return void

Write() public static method

Write the specified text to the debug output.
public static Write ( string Text ) : void
Text string
return void

Write() public static method

Write formatted data to the debug output.
public static Write ( string Text, Object Data ) : void
Text string Format string
Data Object Data object to write.
return void

WriteHex() public static method

Write out a buffer to the console as hex.
public static WriteHex ( string Text, byte Data ) : void
Text string Tag to identify the data
Data byte Data to be written.
return void

WriteLine() public static method

Write a newline to the debug output.
public static WriteLine ( ) : void
return void

WriteLine() public static method

Output functions, pipe data to the console right now. In the future, will pipe to a file as well.
public static WriteLine ( string Text ) : void
Text string
return void

WriteLine() public static method

Write formatted data to the debug output with following newline.
public static WriteLine ( string Text, Object Data ) : void
Text string Format string
Data Object Data object to write.
return void