public void RMS_AddValuesAndClear_AllResetExceptScale() { RMS rms = new RMS(); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); var scale = 1.59; rms.SetScale(scale); rms.Clear(); Assert.AreEqual(scale, rms.Scale); Assert.AreEqual(0, rms.RA); Assert.AreEqual(0, rms.Dec); Assert.AreEqual(0, rms.Total); }
public void RMS_AddValuesClearAndAddOneAgain_ValuesAppliedCorrectly() { RMS rms = new RMS(); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); rms.AddDataPoint(-25, -36); rms.AddDataPoint(-625, -1296); var scale = 1.59; rms.SetScale(scale); rms.Clear(); rms.AddDataPoint(-25, -36); Assert.AreEqual(scale, rms.Scale); Assert.AreEqual(0, rms.RA); Assert.AreEqual(0, rms.Dec); Assert.AreEqual(0, rms.Total); }