Equals() public method

Indicates whether this sql statement instance is equal in content to the one specified
public Equals ( object obj ) : bool
obj object The sql statement object to compare with
return bool
コード例 #1
0
 public void Equals_MatchingSqlAndNonMatchingNumbers()
 {
     //---------------Set up test pack-------------------
     var test1 = new SqlStatement(_connection, "test");
     var test2 = new SqlStatement(_connection, "test");
     test1.AddParameter("param0", 1);
     //---------------Test Result -----------------------
     Assert.IsFalse(test1.Equals(test2));
 }