public void TestEquals()
    {
      Matrix33D m1 = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
      Matrix33D m2 = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
      Assert.IsTrue(m1.Equals(m1));
      Assert.IsTrue(m1.Equals(m2));
      for (int i = 0; i < 9; i++)
      {
        m2 = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
        m2[i] += 0.1;
        Assert.IsFalse(m1.Equals(m2));
      }

      Assert.IsFalse(m1.Equals(m1.ToString()));
    }
 public void TestToString()
 {
   Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
   Assert.IsFalse(String.IsNullOrEmpty(m.ToString()));
 }
Exemple #3
0
 public void TestToString()
 {
     Matrix33D m = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
       Assert.IsFalse(String.IsNullOrEmpty(m.ToString()));
 }
Exemple #4
0
        public void TestEquals()
        {
            Matrix33D m1 = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
              Matrix33D m2 = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
              Assert.IsTrue(m1.Equals(m1));
              Assert.IsTrue(m1.Equals(m2));
              for (int i = 0; i < 9; i++)
              {
            m2 = new Matrix33D(columnMajor, MatrixOrder.ColumnMajor);
            m2[i] += 0.1;
            Assert.IsFalse(m1.Equals(m2));
              }

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