Example #1
0
 static CodeFunction CodeFunctionForUnimplemented(this Project project, Step Step)
 {
     return(project.Classes()
            .Where(x => x.Name == Step.Feature.Name)
            .SelectMany(x => x.Functions())
            .FirstOrDefault(x => x.EqualsTo(Step)));
 }
Example #2
0
        static CodeFunction CodeFunction(this Project Project, MethodInfo Method)
        {
            var DeclaringType = Method.DeclaringType();

            return(Project.Classes()
                   .Where(x => x.FullName == DeclaringType)
                   .SelectMany(x => x.Functions())
                   .FirstOrDefault(x => x.EqualsTo(Method)));
        }