public void NewArrayInitTest() { LinqToSparqlExpTranslator<Track> target = new LinqToSparqlExpTranslator<Track>(); target.TypeTranslator = new XsdtTypeConverter(); Expression e = Expression.NewArrayInit(GetType(), new Expression[] { Expression.Constant(10) }); // array of ten StringBuilder sb = new StringBuilder(); target.StringBuilder = sb; target.NewArrayInit(e); string actualResult = sb.ToString(); string expectedResult = "(?BooleanTestProperty)"; Assert.AreEqual(expectedResult, actualResult); }