public void TypeLookupAdvancedTest(Type expectedType, AvroSchema schema)
        {
            var assembly   = Assembly.GetExecutingAssembly();
            var actualType = SchemaResolver.GetTypeFromSchema(schema, assembly);

            Assert.AreEqual(expectedType, actualType);
        }
        public void TypeLookupExceptionTest()
        {
            var assembly = Assembly.GetExecutingAssembly();
            var schema   = new TypeLookupSchema();

            Assert.Throws <ArgumentException>(() => SchemaResolver.GetTypeFromSchema(schema, assembly));
        }
        public void TypeLookupTest(Type expectedType, Type schema)
        {
            var assembly       = Assembly.GetExecutingAssembly();
            var schemaInstance = Activator.CreateInstance(schema) as AvroSchema;
            var actualType     = SchemaResolver.GetTypeFromSchema(schemaInstance, assembly);

            Assert.AreEqual(expectedType, actualType);
        }