Last Updated: February 25, 2016
·
1.603K
· moswald

Unit Testing: xUnit++

New unit testing framework: https://bitbucket.org/moswald/xunit.

THEORY("Foo shouldn't throw exceptions", (int x, int y),
    (0, 0),
    (1, 0),
    (-1, 0))
{
    Assert.DoesNotThrow([=]() { Foo(x, y); });
}