C# Class Goedel.Debug.Trace

Collection of static methods that provide debugging utilities.
Afficher le fichier Open project: hallambaker/Mathematical-Mesh

Méthodes publiques

Méthode 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

Méthode Description
HexValue ( char c ) : int

Method Details

AreEqual() public static méthode

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
Résultat bool

Assert() public static méthode

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

AssertEqual() public static méthode

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
Résultat bool

AssertNotEqual() public static méthode

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
Résultat bool

HexToByte() public static méthode

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.
Résultat byte[]

NYI() public static méthode

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

Spoil() public static méthode

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

Spoil() public static méthode

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
Résultat void

TBS() public static méthode

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

Write() public static méthode

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

Write() public static méthode

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.
Résultat void

WriteHex() public static méthode

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.
Résultat void

WriteLine() public static méthode

Write a newline to the debug output.
public static WriteLine ( ) : void
Résultat void

WriteLine() public static méthode

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
Résultat void

WriteLine() public static méthode

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.
Résultat void