private void AssertRecordField(EntityItemFieldType[] entityFieldsToAssert, string[] expectedFieldValues) { Assert.AreEqual(3, entityFieldsToAssert.Count()); AssertFieldType(entityFieldsToAssert.ElementAt(0), "name", expectedFieldValues.ElementAt(0)); AssertFieldType(entityFieldsToAssert.ElementAt(1), "id", expectedFieldValues.ElementAt(1)); AssertFieldType(entityFieldsToAssert.ElementAt(2), "enabled", expectedFieldValues.ElementAt(2)); }
private void AssertRecordFieldNames(EntityItemFieldType[] recordFieldsToAssert, string[] expectedValues) { Assert.AreEqual(3, recordFieldsToAssert.Count()); AssertField(recordFieldsToAssert.ElementAt(0), "name", expectedValues[0]); AssertField(recordFieldsToAssert.ElementAt(1), "id", expectedValues[1]); AssertField(recordFieldsToAssert.ElementAt(2), "enabled", expectedValues[2]); }