Ejemplo n.º 1
0
        public void Test_GetRowVector_ObjectBasedVersion_UseRowIndex()
        {
            // Given
            var expectedVector = new DataVector <object>(new object[] { "a1.1", 1, "b1.2", 2 }, _subject.ColumnNames);

            // When
            var actualVector = _subject.GetRowVector(0);

            // Then
            Assert.AreEqual(expectedVector, actualVector);
        }
Ejemplo n.º 2
0
 public bool ContentEquals(IDataFrame other)
 {
     for (int i = 0; i < RowCount; i++)
     {
         var row      = GetRowVector(i);
         var otherRow = other.GetRowVector(i);
         if (!row.Equals(otherRow))
         {
             return(false);
         }
     }
     return(true);
 }