// finds value from CSV
 private static Optional <string> findValueWithFallback(CsvRow row, string leg, string field)
 {
     return(Guavate.firstNonEmpty(row.findValue(leg + field), row.findValue(field)));
 }
        public virtual void test_firstNonEmpty_optionalMatch2()
        {
            Optional <Number> test = Guavate.firstNonEmpty(null, Convert.ToDouble(2d));

            assertEquals(test, Convert.ToDouble(2d));
        }
        public virtual void test_firstNonEmpty_supplierMatch2()
        {
            Optional <Number> test = Guavate.firstNonEmpty(() => null, () => Convert.ToDouble(2d));

            assertEquals(test, Convert.ToDouble(2d));
        }
        public virtual void test_firstNonEmpty_supplierMatchNone()
        {
            Optional <Number> test = Guavate.firstNonEmpty(() => null, () => null);

            assertEquals(test, null);
        }
        public virtual void test_firstNonEmpty_optionalMatchNone()
        {
            Optional <Number> test = Guavate.firstNonEmpty(null, null);

            assertEquals(test, null);
        }