/// <exception cref="System.Exception"></exception> protected override object CreateItem() { TADateArrayItem item = new TADateArrayItem(); item._typed = new DateTime[data.Length]; item._untyped = new object[data.Length]; System.Array.Copy(data, 0, item._typed, 0, data.Length); System.Array.Copy(data, 0, item._untyped, 0, data.Length); return item; }
/// <exception cref="System.Exception"></exception> protected override object CreateItem() { var item = new TADateArrayItem(); item._typed = new DateTime[data.Length]; item._untyped = new object[data.Length]; Array.Copy(data, 0, item._typed, 0, data.Length); Array.Copy(data, 0, item._untyped, 0, data.Length); return(item); }
/// <exception cref="System.Exception"></exception> protected override void AssertItemValue(object obj) { TADateArrayItem item = (TADateArrayItem)obj; for (int i = 0; i < data.Length; i++) { Assert.AreEqual(data[i], item.GetTyped()[i]); Assert.AreEqual(data[i], (DateTime)item.GetUntyped()[i]); } }