public void SetValueTest001() { int valueIndex = 211; int testValue = short.MaxValue; InterWaveBlock block = new InterWaveBlock(); InitializePData(block._PData); Assert.Equal(valueIndex, block.GetValue(valueIndex)); block.SetValue(valueIndex, testValue); Assert.Equal(testValue, block.GetValue(valueIndex)); }
public void SetValueTest006() { int valueIndex = 211; int slope = 3; int baseVal = 211; int testValue = 0; InterWaveBlock block = new InterWaveBlock(); InitializePData(block._PData, slope, baseVal); Assert.Equal(valueIndex * slope + baseVal, block.GetValue(valueIndex)); block.SetValue(valueIndex, testValue); Assert.Equal(testValue, block.GetValue(valueIndex)); }