public virtual void of_failure()
        {
            CalculationResult test = CalculationResult.of(1, 2, FAILURE);

            assertEquals(test.RowIndex, 1);
            assertEquals(test.ColumnIndex, 2);
            assertEquals(test.Result, FAILURE);
            assertEquals(test.getResult(typeof(string)), FAILURE);
            assertEquals(test.getResult(typeof(Integer)), FAILURE);     // cannot throw exception as generic type not known
        }
        //-------------------------------------------------------------------------
        public virtual void of()
        {
            CalculationResult test = CalculationResult.of(1, 2, RESULT);

            assertEquals(test.RowIndex, 1);
            assertEquals(test.ColumnIndex, 2);
            assertEquals(test.Result, RESULT);
            assertEquals(test.getResult(typeof(string)), RESULT);
            assertThrows(() => test.getResult(typeof(Integer)), typeof(System.InvalidCastException));
        }