public void ConvertPropertyAccessFunctionToAssignmentAction()
        {
            Expression <Func <string> > inputFunc    = () => TestProperty1;
            Action <string>             outputAction = x => TestProperty1 = x;
            var result = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(inputFunc);

            result.ToString().ShouldBe(outputAction.ToString());
        }
        public void ConvertMemberAccessFunctionThrowsExceptionWhenNotPassedVariableAccess()
        {
            string testString = null;
            Expression <Func <string> > inputFunc    = () => TestMethod();
            Action <string>             outputAction = x => testString = x;
            var result = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(inputFunc);

            result.ToString().ShouldBe(outputAction.ToString());
        }
        public void ConvertVariableAccessFunctionToAssignmentAction()
        {
            string testString = null;
            Expression <Func <string> > inputFunc    = () => testString;
            Action <string>             outputAction = x => testString = x;
            var result = ExpressionConverter.ConvertMemberAccessFuncToAssignmentAction(inputFunc);

            result.ToString().ShouldBe(outputAction.ToString());
        }