private MessageBoxResult DumpMessage(TypeMock.MethodCallContext context, object[] expectedValues) { StreamUtils converter = new StreamUtils(Encoding.ASCII); int i = 0; foreach (var param in context.Parameters) { Console.WriteLine(string.Format("{0}:[{1}]", param.GetType().FullName, param.ToString())); Console.WriteLine(string.Join(" ", converter.ConvertToBytes(param.ToString()).Select(c => c.ToString("x2")))); Console.WriteLine(string.Join(" ", converter.ConvertToBytes(expectedValues[i].ToString()).Select(c => c.ToString("x2")))); Console.WriteLine(string.Format("Comparison {0}:{1}", param == expectedValues[i], param.Equals(expectedValues[i]))); ++i; } return(MessageBoxResult.OK); }