public void InterceptorsTestWithDefaults() { IUnityContainer container = GetContainer("TestDefaults"); IInterfaceTest proxy = container.Resolve <IInterfaceTest>(); string input = String.Empty; string returnValue = proxy.TargetMethod(ref input); Assert.IsTrue(RemotingServices.IsTransparentProxy(proxy)); Assert.AreEqual <string>("PreAtargetPostA", input); IInterfaceTest proxy1 = container.Resolve <IInterfaceTest>("WithNameA"); string input1 = String.Empty; string returnValue1 = proxy1.TargetMethod(ref input1); Assert.IsFalse(RemotingServices.IsTransparentProxy(proxy1)); Assert.AreEqual <string>("target", input1); }