My project generates few values(equal partitioning method) for each data types by getting the Minimum and Maximum values. I am doing this generating values for functional testing, I am actually passing this values to nunit partner, max amd min are applicable to int, float, double etc., these values are test data .
Initially I generated for basic data types like int, float, double, string etc.
Now I need to support data types like DataSet, HashTable and other Collections.
public DataSet MySampleMethod(int param1, string param2, Hashtable ht)
For testing this function I can pass values for int and string but how will I pass test data for ht or how is test data generated for hash table?
First – I always seed my random values for unit tests, so that hey are repeatable – however, something like (using
Dictionary<,>instead ofHashTable, but equivalent):