public void TemperatureTest() { WaterPacket w = new WaterPacket(1); w.AddEnergy(2000); Assert.AreEqual(4.779e-4, w.Temperature, 1e-6); w.AddEnergy(-2000); Assert.AreEqual(0, w.Temperature, 1e-6); w.AddEnergy(50000); Assert.AreEqual(0.01194, w.Temperature, 1e-4); WaterPacket w2 = new WaterPacket(1); w.Add(w2); Assert.AreEqual(0.0059737, w.Temperature, 1e-4); }