コード例 #1
0
        public void Construct()
        {
            var sut = new ViewEngineInspector();

            Assert.NotNull(sut);
            Assert.IsAssignableFrom <IInspector>(sut);
        }
コード例 #2
0
        public void Setup(ViewEngineInspector sut, IInspectorContext context, IViewEngine viewEngine)
        {
            context.ProxyFactory.Setup(pf => pf.IsWrapInterfaceEligible <IViewEngine>(It.IsAny <Type>())).Returns(true);
            context.ProxyFactory.Setup(pf => pf.WrapInterface(It.IsAny <IViewEngine>(), It.IsAny <IEnumerable <IAlternateMethod> >(), Enumerable.Empty <object>())).Returns(viewEngine);

            sut.Setup(context);

            context.ProxyFactory.Verify(pf => pf.WrapInterface(It.IsAny <IViewEngine>(), It.IsAny <IEnumerable <IAlternateMethod> >(), Enumerable.Empty <object>()), Times.AtLeastOnce());
        }