I would like to know if its possible to return some kind of value, bool, string or int for example from unit test methods.
For example I have this method:
[TestMethod]
public bool TestMetho()
{
var SY = calc.GetUserInfo(new DateTime(2015, 12, 15));
bool isOK = Assert.AreEqual(new DateTime(2015, 11, 29), SY);
return bool;
}
I would like to reference the unit class methods from a console app and then print out the results. Is it possible to do something like this, because at this time I'm not able to assign the Assert.AreEqual method to some output variable.
Thanks in advance, Laziale
Aucun commentaire:
Enregistrer un commentaire