public void MethodCallTest() { LinqToSparqlExpTranslator<Track> target = new LinqToSparqlExpTranslator<Track>(); target.TypeTranslator = new XsdtTypeConverter(); Expression[] ea = new Expression[] { Expression.Constant(15) }; Expression e = Expression.Call(GetType().GetMethod("IntTest"), ea); StringBuilder sb = new StringBuilder(); target.StringBuilder = sb; target.Call(e); string actualResult = sb.ToString(); string expectedResult = "(mi.IntTest(15)"; Assert.AreEqual(expectedResult, actualResult); }