public string getTestName(string ModuleName, string className, string member)()
public SourceLocation getTestLocation(string ModuleName, string className, string member)()
public getSetup(string ModuleName, string className, string member)()
public bool isTestMember(string ModuleName, string className, string member)()
public bool isSetupMember(string ModuleName, string className, string member)()
public void methodCaller(alias T, U)(U func)

Call a method using the right data provders

Example

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);

Public imports

A module containing the discovery logic for classes annodated with @Test

Copyright

© 2017 Szabo Bogdan

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.

Authors

Szabo Bogdan