public void ItConvertsPredicateTypes() { var method = GetType().GetMethod("DoIt"); Func <object, bool> cont = j => (int)j % 2 == 0; var converter = StaticAnalysis.CreateConverter(typeof(int)); method.Invoke(this, new [] { converter(cont) }); Assert.AreEqual(1, didIt); }