methodCaller should call the method with random numeric values
class TestClass { static int usedIntValue = 0; static ulong usedUlongValue = 0; void randomMethod(int value, ulong other) { usedIntValue = value; usedUlongValue = other; } } auto instance = new TestClass; methodCaller!(instance.randomMethod)(&instance.randomMethod); TestClass.usedIntValue.should.not.equal(0); TestClass.usedUlongValue.should.not.equal(0);
Call a method using the right data provders