Пример #1
0
        private void Test <T>(T parameter, String[] keys, String[] expected)
        {
            var parsed = new List <String>();

            foreach (var key in keys)
            {
                parsed.AddRange(ParameterReader <T> .GetValues(parameter, key));
            }
            AssertSameValues(expected, parsed.ToArray());
        }
Пример #2
0
 public void FailOnRequiringMemberOfEmptyParameters()
 {
     ParameterReader <Object> .GetValues(null, "Whatever").ToArray();
 }