public void Resolver_GetSerializationInfoDataContractResolverWithUnsupportedTypes()
 {
     Assert.Throws <SerializationException>(() =>
     {
         var resolver = new AvroDataContractResolver();
         resolver.ResolveType(typeof(ClassWithoutParameterlessConstructor));
     }
                                            );
 }
 public void Resolver_GetSerializationInfoUsingDataContactResolverWithNullType()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var resolver = new AvroDataContractResolver();
         resolver.ResolveType(null);
     }
                                           );
 }
 public void Resolver_GetSerializationInfoDataContractResolverWithUnsupportedTypes()
 {
     var resolver = new AvroDataContractResolver();
     resolver.ResolveType(typeof(ClassWithoutParameterlessConstructor));
 }
示例#4
0
        public void Resolver_GetSerializationInfoUsingDataContactResolverWithNullType()
        {
            var resolver = new AvroDataContractResolver();

            resolver.ResolveType(null);
        }
 public void Resolver_GetSerializationInfoUsingDataContactResolverWithNullType()
 {
     var resolver = new AvroDataContractResolver();
     resolver.ResolveType(null);
 }