public void MethodCallWithLambdaWithNewAndPropertyInitializationWithNegatedReference() { var o = new SimpleObjectPropertyStringTest(); Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest { Id = -one }), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest() { Id = -one })"); }
public void MethodCallWithLambdaWithNewAndConstructorParameters() { var o = new SimpleObjectPropertyStringTest(); Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest("foo", one)), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest(\"foo\", one))"); }
public void MethodCallWithLambdaWithNewAndNegatedReferenceValueAsConstructorArgument() { var o = new SimpleObjectPropertyStringTest(); Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest(!True)), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest(!True))"); }
public void MethodCallWithLambdaWithNew() { var o = new SimpleObjectPropertyStringTest(); Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest()), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest())"); }