예제 #1
0
        public void ConversionToBaseSet()
        {
            CurrencySet <Iso4217.Currency> convSet = _set;

            var allCur = convSet.AllCurencies;
            var cur    = convSet.TryParse("EUR");
        }
예제 #2
0
        public void TryParseNumCodeFail()
        {
            var set = new CurrencySet(new[] { _xa, _xb, _xc });

            ICurrency c;

            Assert.IsFalse(set.TryParse("???", out c));
        }
예제 #3
0
        public void TryParseCharCode()
        {
            var set = new CurrencySet(new[] { _xa, _xb, _xc });

            ICurrency c;

            Assert.IsTrue(set.TryParse("XA", out c));
            Assert.AreEqual("XA", c.CharCode);
        }