Пример #1
0
        public void InterceptDevice_Associates_SetterIntercepter_With_Proxy()
        {
            var device       = DeviceProxy.InterceptDevice(new Dummy()) as IProxyTargetAccessor;
            var interceptors = device.GetInterceptors();

            Assert.That(interceptors, Has.Length.EqualTo(1));
            Assert.That(interceptors[0], Is.InstanceOf <SetterInterceptor>());
        }