C# Class Smrf.NodeXL.UnitTests.MetadataUtil

Utility methods for testing components that implement .
All methods are static.
Exibir arquivo Open project: 2014-sed-team3/term-project Class Usage Examples

Public Methods

Method Description
CheckRandomMetadata ( IMetadataProvider oMetadataProvider, System.Boolean bRandomMetadataExpected, System.Boolean bRandomTagExpected, Int32 iSeed ) : void
SetRandomMetadata ( IMetadataProvider oMetadataProvider, System.Boolean bSetMetadataValues, System.Boolean bSetTag, Int32 iSeed ) : void
TestGetValue ( IMetadataProvider oMetadataProvider, String sKey, Object oExpectedValue ) : void

Private Methods

Method Description
CheckMetadataValue ( Object oExpectedValue, Object oValue ) : void
GetRandomKey ( Random oRandom ) : String
GetRandomMetadata ( Int32 iSeed, Object>.KeyValuePair &aoRandomMetadata, Object &oRandomTag ) : void
GetRandomValue ( Random oRandom ) : Object

Method Details

CheckRandomMetadata() public static method

public static CheckRandomMetadata ( IMetadataProvider oMetadataProvider, System.Boolean bRandomMetadataExpected, System.Boolean bRandomTagExpected, Int32 iSeed ) : void
oMetadataProvider IMetadataProvider
bRandomMetadataExpected System.Boolean
bRandomTagExpected System.Boolean
iSeed System.Int32
return void

SetRandomMetadata() public static method

public static SetRandomMetadata ( IMetadataProvider oMetadataProvider, System.Boolean bSetMetadataValues, System.Boolean bSetTag, Int32 iSeed ) : void
oMetadataProvider IMetadataProvider
bSetMetadataValues System.Boolean
bSetTag System.Boolean
iSeed System.Int32
return void

TestGetValue() public static method

public static TestGetValue ( IMetadataProvider oMetadataProvider, String sKey, Object oExpectedValue ) : void
oMetadataProvider IMetadataProvider
sKey String
oExpectedValue Object
return void