public void EqualityTestInt(int[,] elements) { var lhs = new SymmetricalMatrix <int>(elements); var rhs = new SymmetricalMatrix <int>(elements); Assert.IsTrue(lhs.Equals(rhs)); }
public void EqualityTestString(string[,] elements) { var lhs = new SymmetricalMatrix <string>(elements); var rhs = new SymmetricalMatrix <string>(elements); Assert.IsTrue(lhs.Equals(rhs)); }
public void Equals_SymmetricalMatrixEqualSquareMatrix_TrueReturned() { var a = new SymmetricalMatrix<int>(new int[,]{ {1,1}, {1,2}}); var b = new SquareMatrix<int>(new int[,]{ {1,1}, {1,2}}); bool result = a.Equals(b); Assert.AreEqual(true, result); }