public void ToGenericArrayCreatesTypedArray() { dynamic list = new SimpleResultSet(Records(1)); TestType[] array = list.ToArray <TestType>(); Assert.IsNotNull(array); Assert.AreEqual(1, array.Length); Assert.AreEqual("0", array[0].Data); }
public void ToArrayCreatesArray() { dynamic list = new SimpleResultSet(Records(1)); dynamic[] array = list.ToArray(); Assert.IsNotNull(array); Assert.AreEqual(1, array.Length); Assert.AreEqual("0", array[0].Data); }
public void ToGenericArrayCreatesTypedArray() { dynamic list = new SimpleResultSet(Records(1)); TestType[] array = list.ToArray<TestType>(); Assert.IsNotNull(array); Assert.AreEqual(1, array.Length); Assert.AreEqual("0", array[0].Data); }
public void ToArrayCreatesArray() { dynamic list = new SimpleResultSet(Records(1)); dynamic[] array = list.ToArray(); Assert.IsNotNull(array); Assert.AreEqual(1, array.Length); Assert.AreEqual("0", array[0].Data); }