public void SubtractCheckedTest() { LinqToSparqlExpTranslator<Track> target = new LinqToSparqlExpTranslator<Track>(); target.TypeTranslator = new XsdtTypeConverter(); Expression e = Expression.SubtractChecked(EH.Member(GetType().GetProperty("IntTestProperty")), Expression.Constant(1)); StringBuilder sb = new StringBuilder(); target.StringBuilder = sb; target.SubtractChecked(e); string actualResult = sb.ToString(); string expectedResult = "(?IntTestProperty)-(1)"; Assert.AreEqual(expectedResult, actualResult); }