public void Ctor_WithValues_SetsValuesProperty()
        {
            var list = new SqlValueList(Enumerable.Range(1, 6).Select(i => new SqlConstant(i)));

            Assert.NotNull(list.Values);
            var values = list.Values.ToArray();
            Assert.Equal(6, values.Length);
            Assert.Equal(1, values[0]);
            Assert.Equal(2, values[1]);
            Assert.Equal(3, values[2]);
            Assert.Equal(4, values[3]);
            Assert.Equal(5, values[4]);
            Assert.Equal(6, values[5]);
        }
        public void Ctor_WithValues_SetsValuesProperty()
        {
            var list = new SqlValueList(Enumerable.Range(1, 6).Select(i => new SqlConstant(i)));

            Assert.NotNull(list.Values);
            var values = list.Values.ToArray();

            Assert.Equal(6, values.Length);
            Assert.Equal(1, values[0]);
            Assert.Equal(2, values[1]);
            Assert.Equal(3, values[2]);
            Assert.Equal(4, values[3]);
            Assert.Equal(5, values[4]);
            Assert.Equal(6, values[5]);
        }
Beispiel #3
0
 /// <summary>
 /// Visits the specified <see cref="SqlValueList"/>.
 /// </summary>
 /// <param name="expression">
 /// The expression to visit.
 /// </param>
 public virtual void Visit(SqlValueList expression)
 {
 }
        public void Ctor_WithNullValues_DoesNotThrow()
        {
            var list = new SqlValueList(null);

            Assert.NotNull(list.Values);
        }
 public void Ctor_WithNullValues_DoesNotThrow()
 {
     var list = new SqlValueList(null);
     Assert.NotNull(list.Values);
 }
Beispiel #6
0
 /// <summary>
 /// Visits the specified <see cref="SqlValueList"/>.
 /// </summary>
 /// <param name="expression">
 /// The expression to visit.
 /// </param>
 public virtual void Visit(SqlValueList expression)
 {
 }