public void Proxy_for_ISerializable_entity_can_be_created_under_full_trust_and_is_ISerializable() { using (var context = new FullTrustProxiesContext()) { var proxy = context.MeISerializables.Create(); Assert.IsNotType <MeISerializable>(proxy); Assert.True(proxy is ISerializable); } }
public void Proxy_for_ISerializable_entity_can_be_created_under_full_trust_and_is_ISerializable() { using (var context = new FullTrustProxiesContext()) { var proxy = context.MeISerializables.Create(); Assert.IsNotType<MeISerializable>(proxy); Assert.True(proxy is ISerializable); } }