Ejemplo n.º 1
0
        public void MatchesIdenticallyNamedParameter()
        {
            var param = AParamOfCConstructor();

            var namedParam = new NamedParameter("a", new A());

            Assert.True(namedParam.CanSupplyValue(param, Factory.CreateEmptyContainer(), out Func <object> vp));
        }
Ejemplo n.º 2
0
        public void DoesNotMatchDifferentlyNamedParameter()
        {
            var param = AParamOfCConstructor();

            var namedParam = new NamedParameter("b", new B());

            Assert.False(namedParam.CanSupplyValue(param, Factory.CreateEmptyContainer(), out Func <object> vp));
        }
Ejemplo n.º 3
0
        public void DoesNotMatchDifferentlyNamedParameter()
        {
            var param = AParamOfCConstructor();

            var namedParam = new NamedParameter("b", new B());

            Func<object> vp;
            Assert.False(namedParam.CanSupplyValue(param, new Container(), out vp));
        }
Ejemplo n.º 4
0
        public void MatchesIdenticallyNamedParameter()
        {
            var param = AParamOfCConstructor();

            var namedParam = new NamedParameter("a", new A());

            Func<object> vp;
            Assert.True(namedParam.CanSupplyValue(param, new Container(), out vp));
        }
Ejemplo n.º 5
0
        public void MatchesIdenticallyNamedParameter()
        {
            var param = AParamOfCConstructor();

            var namedParam = new NamedParameter("a", new A());

            Func <object> vp;

            Assert.IsTrue(namedParam.CanSupplyValue(param, new Container(), out vp));
        }