Beispiel #1
0
    public void CreateGas_PositiveAmountAndTemperature_TotalGasIncreasesByValue()
    {
        empty1.CreateGas("gas", 1.0f, 1.0f);
        notEmpty1.CreateGas("gas", 1.0f, 1.0f);

        Assert.AreEqual(1.0f, empty1.TotalGas);
        Assert.AreEqual(2.0f, notEmpty2.TotalGas);
    }
Beispiel #2
0
    public void Setup()
    {
        empty1 = new AtmosphereComponent();

        notEmpty1 = new AtmosphereComponent();
        notEmpty2 = new AtmosphereComponent();
        notEmpty1.CreateGas("gas", 1.0f, 1.0f);
        notEmpty2.CreateGas("gas", 2.0f, 2.0f);
    }