public void Test003() { var data = new[] { new { FieldOne = 10, FieldTwo = 100 }, new { FieldOne = 30, FieldTwo = 900 }, new { FieldOne = 2, FieldTwo = 4 }, }; using (assert.ContextPush()) for (int i = 0; i < data.Length; i++) { assert.ContextSet("index", i.ToString()); // fieldtwo must be square of fieldone assert.IsTrue(() => data[i].FieldOne * data[i].FieldOne == data[i].FieldTwo); // fieldone must be multiple of 10 assert.IsTrue(() => data[i].FieldOne % 10 == 0); } }