Beispiel #1
0
        public void MethodCallWithLambdaWithNewAndPropertyInitializationWithNegatedReference()
        {
            var o = new SimpleObjectPropertyStringTest();

            Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest {
                Id = -one
            }), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest() { Id = -one })");
        }
Beispiel #2
0
        public void MethodCallWithLambdaWithNewAndConstructorParameters()
        {
            var o = new SimpleObjectPropertyStringTest();

            Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest("foo", one)), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest(\"foo\", one))");
        }
Beispiel #3
0
        public void MethodCallWithLambdaWithNewAndNegatedReferenceValueAsConstructorArgument()
        {
            var o = new SimpleObjectPropertyStringTest();

            Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest(!True)), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest(!True))");
        }
Beispiel #4
0
        public void MethodCallWithLambdaWithNew()
        {
            var o = new SimpleObjectPropertyStringTest();

            Test(() => o.ComplexLambda(() => new SimpleObjectPropertyStringTest()), "o.ComplexLambda(() => new SimpleObjectPropertyStringTest())");
        }