コード例 #1
0
        public void GridCtor_ReadPastEnd()
        {
            InputGrid <bool> myGrid = new InputGrid <bool>(dataGrid);

            for (uint row = 1; row <= dimensions.Rows; ++row)
            {
                for (uint col = 1; col <= dimensions.Columns; ++col)
                {
                    Assert.AreEqual(data[row - 1, col - 1], myGrid.ReadValue());
                }
            }

            myGrid.ReadValue();
        }
コード例 #2
0
 public void GridCtor_ReadValue()
 {
     for (uint row = 1; row <= dimensions.Rows; ++row)
     {
         for (uint col = 1; col <= dimensions.Columns; ++col)
         {
             Assert.AreEqual(data[row - 1, col - 1], grid.ReadValue());
         }
     }
 }
コード例 #3
0
		public void GridCtor_ReadPastEnd()
		{
			InputGrid<bool> myGrid = new InputGrid<bool>(dataGrid);
			
			for (uint row = 1; row <= dimensions.Rows; ++row)
				for (uint col = 1; col <= dimensions.Columns; ++col)
					Assert.AreEqual(data[row-1, col-1], myGrid.ReadValue());

			myGrid.ReadValue();
		}