public void Resolver_GetSerializationInfoPublicMembersResolverWithUnsupportedTypes()
 {
     Assert.Throws <SerializationException>(() =>
     {
         var resolver = new AvroPublicMemberContractResolver();
         resolver.ResolveType(typeof(ClassWithoutParameterlessConstructor));
     }
                                            );
 }
 public void Resolver_GetSerializationInfoUsingPublicMembersResolverWithNullType()
 {
     Assert.Throws <ArgumentNullException>(() =>
     {
         var resolver = new AvroPublicMemberContractResolver();
         resolver.ResolveType(null);
     }
                                           );
 }
예제 #3
0
 public void Resolver_GetSerializationInfoPublicMembersResolverWithUnsupportedTypes()
 {
     var resolver = new AvroPublicMemberContractResolver();
     resolver.ResolveType(typeof(ClassWithoutParameterlessConstructor));
 }
예제 #4
0
        public void Resolver_GetSerializationInfoUsingPublicMembersResolverWithNullType()
        {
            var resolver = new AvroPublicMemberContractResolver();

            resolver.ResolveType(null);
        }
예제 #5
0
 public void Resolver_GetSerializationInfoUsingPublicMembersResolverWithNullType()
 {
     var resolver = new AvroPublicMemberContractResolver();
     resolver.ResolveType(null);
 }