lundi 7 décembre 2015

Is it possible to use parameterised test case data with Xcode's XCTest Framework?

Something similar to the TestCaseAttribute that NUnit has, along the lines of:

[TestCase(12,3,4)]
[TestCase(12,2,6)]
[TestCase(12,4,3)]
public void DivideTest(int n, int d, int q)
{
  Assert.AreEqual( q, n / d );
}

Is it possible to provide parameterised test case data like this, in Xcode?

Aucun commentaire:

Enregistrer un commentaire