Exemplo n.º 1
0
        public void testGetID()
        {
            DataGestion dataConn = new DataGestion();
            String      id       = dataConn.getID("ALSTOM");

            if (!id.Contains("ALO FP"))
            {
                throw new ArgumentOutOfRangeException("l'ID récupéré n'est pas bon :" + id);
            }
        }
Exemplo n.º 2
0
        public void testFakeGetID()
        {
            DataGestion dataConn = new DataGestion();
            String      id       = dataConn.getID("test");

            if (id != null)
            {
                throw new ArgumentOutOfRangeException("id non null dans tastFakeGetId");
            }
        }