Пример #1
0
        public void ClearExample()
        {
            var vector = new VectorN(2);

            vector.SetValues(3, 7);
            vector.Clear();
            Assert.AreEqual(0, vector[0]);
            Assert.AreEqual(0, vector[1]);
        }
Пример #2
0
        public void Simple()
        {
            var vector = new VectorN(3);

            vector.SetValues(3, 7, 8);

            vector.Clear();

            Assert.AreEqual(0, vector[0]);
            Assert.AreEqual(0, vector[1]);
            Assert.AreEqual(0, vector[0]);
        }