Пример #1
0
        public void SetUp()
        {
            _array    = new StringArray(2, 3);
            _readOnly = _array.AsReadOnly();

            Assert.AreEqual(6, _array.Length);
            Assert.AreEqual(2, _array.Rank);
            Assert.AreEqual(2, _array.GetLength(0));
            Assert.AreEqual(3, _array.GetLength(1));

            _array[0, 0] = "one"; _array[0, 1] = "two"; _array[0, 2] = "three";
            _array[1, 0] = "four"; _array[1, 1] = "five"; _array[1, 2] = "six";
        }