private Expression Resolve(ParameterInfo param) { var servicesArg = Expression.Parameter(typeof(IServiceProvider), "services"); var resolver = new ArgumentResolver(); return(resolver.Resolve(param, servicesArg)); }
public void ArgumentResolver_Resolve() { List <object> testList = new List <object>() { 1, 5243, true, false, typeof(Coin), null }; string[] testArray = new string[6] { "1", "5243", "true", "false", "Coin", "three" }; List <object> expected = _argumentResolver.Resolve(testArray); CollectionAssert.AreEqual(expected, testList); }