Exemplo n.º 1
0
        public void CountriesTest()
        {
            string gc = Countries.GetCode(string.Empty);

            Assert.AreEqual(gc, string.Empty);
            gc = Countries.GetCode(null);
            Assert.AreEqual(gc, string.Empty);
            gc = Countries.GetCode("qqqqqqqqqqqqqqq");
            Assert.AreEqual(gc, "QQ");
            string str = Countries.GetName(string.Empty);

            Assert.AreEqual(str, string.Empty);
            str = Countries.GetName(null);
            Assert.AreEqual(str, string.Empty);
            str = Countries.GetName("qqqqqqqqqqqqqqq");
            Assert.AreEqual(str, string.Empty);
            str = Countries.GetName("gqpqqqqqqqqqusq");
            Assert.AreEqual(str, "United States");
        }