public void updateChNo() { Dictionary<string, double> a = new Dictionary<string, double>(); a.Add("teste", 100); spdyserver.grupo grup = new spdyserver.grupo(a, 0.1, 1); Dictionary<string, double> s = new Dictionary<string, double>(); s.Add("teste", 100.5); List<string> saida = grup.update(s); Dictionary<string, double> b = grup.getgrupo(); Assert.AreEqual(saida.Count, 0); }
public void updateCh() { //verifica se houve atualização Dictionary<string, double> a = new Dictionary<string, double>(); a.Add("teste", 100); spdyserver.grupo grup = new spdyserver.grupo(a, 0.1, 1); Dictionary<string, double> s = new Dictionary<string, double>(); s.Add("teste", 2000); List<string> saida = grup.update(s); Dictionary<string, double> b = grup.getgrupo(); Assert.AreEqual(saida.Count, 1); }