示例#1
0
        public void LastValue()
        {
            //last does not work because the single dimensional indexing does not work see test above
            IMultiDimensionalArray <double> array = new MultiDimensionalArray <double>();

            array.Add(3.0);
            Assert.AreEqual(1, array.Count);
            Assert.AreEqual(3.0, array.Last());
        }
 public void LastValue()
 {
     //last does not work because the single dimensional indexing does not work see test above
     IMultiDimensionalArray<double> array = new MultiDimensionalArray<double>();
     array.Add(3.0);
     Assert.AreEqual(1, array.Count);
     Assert.AreEqual(3.0, array.Last());
 }