Пример #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));
        }
Пример #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));
        }
Пример #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));
        }
Пример #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));
        }
Пример #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));
        }