public void FieldExpressions_GetEnumerator_Empty()
        {
            // Prepare test data
            FieldExpressions expressions = new FieldExpressions();

            // Check test result
            Assert.AreEqual(0, expressions.Count());
            foreach (FieldExpression field in expressions)
            {
                Assert.Fail();
            }
        }
        public void FieldExpressions_GetEnumerator_Populated()
        {
            // Prepare test data
            string[]         fields      = new string[] { "FieldA", "FieldB" };
            FieldExpressions expressions = new FieldExpressions(source, "Table", fields);

            // Check test result
            Assert.AreEqual(fields.Length, expressions.Count());
            int next = 0;

            foreach (FieldExpression field in expressions)
            {
                Assert.AreEqual("Table", field.TableName);
                Assert.IsTrue(fields.Any(x => x == field.FieldName));
                Assert.AreEqual($"f{next}", expressions.GetKey(field));
                next++;
            }
        }