I didn't know you could do the following to a test :
[TestCase(argument1, argument2)]
[TestCase(argument1, argument2)]
[TestCase(argument1, argument2)]
[Test]
public void Test(string argument1, string argument2) {
Assert.AreEqual(argument1, argument2);
}
It allows us to run the same test multiple times with different arguments. DRY!
Calculator Code Kata Cast 1 from Rickard Nilsson on Vimeo.
No comments:
Post a Comment