Exemplo n.º 1
0
 public void TestToString()
 {
     Matrix44D m = new Matrix44D(rowMajor, MatrixOrder.RowMajor);
       Assert.IsFalse(String.IsNullOrEmpty(m.ToString()));
 }
Exemplo n.º 2
0
        public void TestEquals()
        {
            Matrix44D m1 = new Matrix44D(rowMajor, MatrixOrder.RowMajor);
              Matrix44D m2 = new Matrix44D(rowMajor, MatrixOrder.RowMajor);
              Assert.IsTrue(m1.Equals(m1));
              Assert.IsTrue(m1.Equals(m2));
              for (int i = 0; i < 16; i++)
              {
            m2 = new Matrix44D(rowMajor, MatrixOrder.RowMajor);
            m2[i] += 0.1;
            Assert.IsFalse(m1.Equals(m2));
              }

              Assert.IsFalse(m1.Equals(m1.ToString()));
        }