title: UnitTesting non returning method c#
body: <p>How would on go about unit testing a method like this? Is it even possible when it's a void?</p>
  
  <pre><code>public static void CalcDeltaCO2 ()
      {
          double plantCO2usage = CalcPlantCO2Usage ();
          double airShiftsPerHour = 1 + instance._greenhouse.WindowRoof.GetStatus ();
          double co2AtStart = _simulatedChunks &gt; 1 ? Toolbox.PPMtoM3perM3 (instance._currentCO2Sensor) : Toolbox.CO2_LEVEL_OUTSIDE;
          instance._deltaCO2 = Toolbox.M3perM3toPPM ((((instance._greenhouse.CO2Dispenser.GetFlow ()) - plantCO2usage
          / (airShiftsPerHour * instance._greenhouse.Volume))
          * (1.0 - (1.0 / Math.Pow (Math.E, (airShiftsPerHour * Toolbox.CHUNK_TIME_H)))) + (Toolbox.CO2_LEVEL_OUTSIDE - co2AtStart)
          * (1.0 / Math.Pow (Math.E, (airShiftsPerHour * Toolbox.CHUNK_TIME_H))) + co2AtStart)
          - Toolbox.PPMtoM3perM3 (instance._currentCO2Sensor));
      }
  </code></pre>