public void TestTypeMapping()
        {
            TryInvalid(
                typeof(Console),
                "Unsupported type 'System.Console' when expecting any of: [BOOLEAN, BYTE, BYTE_ARRAY, DECIMAL, DOUBLE, FLOAT, INT32, INT64, INT16, STRING, TIMESTAMP]");

            var config = new ConfigurationCommonDBRef();

            config.AddTypeBinding(typeof(long), typeof(int));
        }
 private void TryInvalid(
     Type type,
     string text)
 {
     try
     {
         var config = new ConfigurationCommonDBRef();
         config.AddTypeBinding(typeof(int), type);
     }
     catch (ConfigurationException ex)
     {
         Assert.AreEqual(text, ex.Message);
     }
 }