public void VerifyFormulas() { var notifies = new Totals { TaxPercentage = 20 }; var mortgateCalculatorViewModel = new MortgateCalculatorViewModel(); VerifyExpression(() => (int)(notifies.SubTotal * (1m + (notifies.TaxPercentage / 100m))), "(notifies.SubTotal * (1 + (notifies.TaxPercentage / 100)))"); VerifyExpression(() => InstanceMethodCall(), "InstanceMethodCall()"); VerifyExpression(() => notifies.InstanceMethod(), "notifies.InstanceMethod()"); VerifyExpression(() => mortgateCalculatorViewModel.RegeneratePaymentSchedule(true), "mortgateCalculatorViewModel.RegeneratePaymentSchedule(true)"); VerifyExpression(() => StaticMethod(notifies.SubTotal), "StaticMethod(notifies.SubTotal)"); VerifyExpression(() => StaticMethodLotsOfArguments(notifies.TaxPercentage, notifies.TaxPercentage, notifies.TaxPercentage, notifies.TaxPercentage), "StaticMethodLotsOfArguments(...)"); }