public void MatchesIdenticallyNamedParameter() { var param = AParamOfCConstructor(); var namedParam = new NamedParameter("a", new A()); Assert.True(namedParam.CanSupplyValue(param, Factory.CreateEmptyContainer(), out Func <object> vp)); }
public void DoesNotMatchDifferentlyNamedParameter() { var param = AParamOfCConstructor(); var namedParam = new NamedParameter("b", new B()); Assert.False(namedParam.CanSupplyValue(param, Factory.CreateEmptyContainer(), out Func <object> vp)); }
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)); }
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)); }
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)); }