Beispiel #1
0
 public void TableIndexTest()
 {
     for (var row = 0; row < TableIndex.MaximumRowNumber; row++)
     {
         for (var column = 0; column < TableIndex.MaximumColumnNumber; column++)
         {
             var index = new TableIndex {
                 Row = row, Column = column
             };
             var temporary = TableIndex.FromLinearIndex(index.LinearIndex);
             Assert.IsTrue(index.Equals(temporary));
             Assert.IsTrue(index == temporary);
             Assert.IsFalse(index != temporary);
         }
     }
 }