I have a lot of unit tests that pretty much tests the same behavior. However, data type changes.
I am trying to create a generic method that can take any data type.
You can take in object as a parameter type. Even better, perhaps, would be to use generics:
object
void MyMethod(T parm) { ... }
This way the parameter is actually of the type the user passed in -- it isn't boxed like with object and value types.