public void ConvertUnit() { TimestampSeries timestampSeries = new TimestampSeries(); timestampSeries.Unit = new HydroNumerics.Core.Unit("cm pr second", 0.01, 0.0); timestampSeries.Items.Add(new TimestampValue(new DateTime(2010, 1, 1, 0, 0, 0), 7)); timestampSeries.Items.Add(new TimestampValue(new DateTime(2010, 1, 2, 0, 0, 0), 9)); HydroNumerics.Core.Unit newUnit = new HydroNumerics.Core.Unit("mm pr sec", 0.001, 0.0); timestampSeries.ConvertUnit(newUnit); Assert.AreEqual(70, timestampSeries.Items[0].Value); Assert.AreEqual(90, timestampSeries.Items[1].Value); Assert.IsTrue(timestampSeries.Unit.Equals(newUnit)); }