title: Comparing two DataTables (Unit Testing, Integration Testing, C#, TestMethod)
body: <p>What kind of tests should be carried out in unit testing when comparing Datatables that are supposed to be different and have multiple rows.</p>
  
  <pre><code>    [TestMethod]
      public void ExecuteOutWithMultipleDataTables()
      {
          //Arrange
          int id1 = TestOrderBuilder.New().Build();
          DataTable dtDefault = CreateDefaultDataTable(id1, "OUT", "TableDesc", DateTime.Now);
  
          //Act
          object[] result = OracleDatabase.ExecuteOut(SqlStatements.Cursor, procedureParameters);
          DataTable dtResults = result[0] as DataTable;
  
          //Assert
          Assert.IsNotNull(dtDefault);
          Assert.IsNotNull(dtResults);
          Assert.AreNotEqual(dtDefault, dtResults);
          Assert.AreNotSame(dtDefault.Rows[0][0], dtResults.Rows[0][0]);
          Assert.AreNotSame(dtDefault.Rows[0][1], dtResults.Rows[0][1]);
      }
  </code></pre>
  
  <p>This is an example of some of what I have wrote already, but I am unsure if I am on the right track.</p>
  
  <p>Does anyone have advice?</p>
  
  <p>Mac</p>