private void TestOneMapping <I, A>(I expected, A args, object values) { var partial = PartialMapper.Create <A, I>(values); var actual = partial(args); Assert.Equal(expected, actual); }
private void TestOneMappingError <I, A, E>(A args, object values) where E : Exception { var partial = PartialMapper.Create <A, I>(values); Assert.Throws <E>(() => partial(args)); }