Exemple #1
0
    public void CreateGas_PositiveAmountAndTemperature_TemperatureIncreasesCorrectly()
    {
        empty1.CreateGas("gas", 1.0f, 1.0f);
        notEmpty1.CreateGas("gas", 1.0f, 1.0f);
        notEmpty2.CreateGas("gas", 1.0f, 1.0f);

        Assert.AreEqual(1.0f, empty1.GetTemperature().InKelvin);
        Assert.AreEqual(1.0f, notEmpty1.GetTemperature().InKelvin);
        Assert.AreEqual(5.0f / 3.0f, notEmpty2.GetTemperature().InKelvin);
    }