static void checkFailure(IceMX.MetricsAdminPrx m, string map, string id, string failure, int count) { IceMX.MetricsFailures f = m.getMetricsFailures("View", map, id); if(!f.failures.ContainsKey(failure)) { WriteLine("couldn't find failure `" + failure + "' for `" + id + "'"); test(false); } if(count > 0 && f.failures[failure] != count) { Write("count for failure `" + failure + "' of `" + id + "' is different from expected: "); WriteLine(count + " != " + f.failures[failure]); test(false); } }