Example #1
0
        public static string getConsoleOutput(IInvocationList invocations)
        {
            if (!invocations.Any())
            {
                return(string.Empty);
            }

            return(string.Concat(invocations.Where(i => i.Method.Name.Contains("Write")).Select(i => i.Arguments.OfType <string>().FirstOrDefault())));
        }
Example #2
0
 public static IEnumerable <IInvocation> WithoutAdditional(this IInvocationList invocationList)
 {
     //there is no setting to be concerned with
     return(invocationList.Where(i => i.Method.Name != "get____Additional"));
 }