public void for_throws_if_type_has_already_been_registered_with_the_same_id() { TypeDescriptor.For(typeof(TypeWithProperty)); Assert.Throws<SerializationException>(() => { TypeDescriptor.For(typeof(TypeWithDuplicateTypeId)); }); }