示例#1
0
        public void Dump()
        {
            var allReceivedCalls = _allReceivedCalls
                                   .ToDictionary();

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine();

            Console.WriteLine("Total calls observed: {0}", allReceivedCalls.Values.SelectMany(v => v).Count());

            foreach (var kvp in allReceivedCalls)
            {
                foreach (var methodCall in kvp.Value)
                {
                    Console.WriteLine("\t{0}({1})", kvp.Key, string.Join(", ", methodCall));
                    Console.WriteLine();
                }
            }

            Console.WriteLine();
            Console.WriteLine();
            Console.WriteLine();

            Console.WriteLine("Total calls observed: {0}", allReceivedCalls.Values.SelectMany(v => v).Count());
        }