public void Clear() { var rec = new SubGridCellPassDataCMVEntryRecord(1, 2, 3, 4); rec.Clear(); rec.Should().BeEquivalentTo(SubGridCellPassDataCMVEntryRecord.NullValue); }
public void Test_NullCells() { var cell = new SubGridCellPassDataCMVEntryRecord(); cell.Clear(); var clientGrid = ClientLeafSubGridFactoryFactory.CreateClientSubGridFactory().GetSubGrid(GridDataType.CCV) as ClientCMVLeafSubGrid; SubGridUtilities.SubGridDimensionalIterator((x, y) => Assert.True(clientGrid.Cells[x, y].Equals(cell))); }
public void Test_SubGridCellPassDataCMVEntryRecord_Creation() { SubGridCellPassDataCMVEntryRecord rec = new SubGridCellPassDataCMVEntryRecord(); rec.Clear(); Assert.True(rec.MeasuredCMV == CellPassConsts.NullCCV); Assert.True(rec.TargetCMV == CellPassConsts.NullCCV); Assert.True(rec.PreviousMeasuredCMV == CellPassConsts.NullCCV); Assert.True(rec.PreviousTargetCMV == CellPassConsts.NullCCV); }