public void ToDynamicProxyInterceptors_WhenInterceptorsIsNotNull_ThenThrowArgumentNullException()
        {
            var interceptorMock         = new Mock <IInterceptronInterceptor>();
            var interceptors            = new[] { interceptorMock.Object };
            var transformedInterceptors = DynamicProxyGeneratorHelper.ToDynamicProxyInterceptors(interceptors);

            Assert.NotNull(transformedInterceptors);
            Assert.IsInstanceOf <DynamicProxyInterceptorAdapter[]>(transformedInterceptors);

            var transformedInterceptor = transformedInterceptors[0] as DynamicProxyInterceptorAdapter;

            Assert.IsNotNull(transformedInterceptor);

            Assert.AreEqual(interceptorMock.Object, transformedInterceptor.Interceptor);
        }
 public void ToDynamicProxyInterceptors_WhenInterceptorsIsNull_ThenThrowArgumentNullException()
 {
     Assert.Throws <ArgumentNullException>(() => DynamicProxyGeneratorHelper.ToDynamicProxyInterceptors(null));
 }