Example #1
0
        public void Check_Creating_Cell_Of_List()
        {
            //Arrange
            double n = -4;

            Matrix.cell c = new Matrix.cell(-4, -4);

            //Act and Assert
            Assert.ThrowsException <System.ArgumentOutOfRangeException>(() => c.i == n || c.j == n);
        }
Example #2
0
        public void Check_Pushed_Meaning_For_Zero()
        {
            //arrangement
            Matrix.cell c = new Matrix.cell(1, 1, 0);
            Matrix      m = new Matrix(1, 1);

            Matrix.cell expected = null;
            //act
            m.Push(c);
            //assert
            Assert.AreNotEqual(expected, m.First);
        }