Ejemplo n.º 1
0
        public void TestValidateCurrency()
        {
            GALogger.InfoLog = true;

            Assert.True(GAValidator.ValidateCurrency("USD"));
            Assert.True(GAValidator.ValidateCurrency("XXX"));

            Assert.False(GAValidator.ValidateCurrency("usd"));
            Assert.False(GAValidator.ValidateCurrency("US"));
            Assert.False(GAValidator.ValidateCurrency("KR"));
            Assert.False(GAValidator.ValidateCurrency("USDOLLARS"));
            Assert.False(GAValidator.ValidateCurrency("$"));
            Assert.False(GAValidator.ValidateCurrency(""));
            Assert.False(GAValidator.ValidateCurrency(null));
        }