public void ConversionToBaseSet() { CurrencySet <Iso4217.Currency> convSet = _set; var allCur = convSet.AllCurencies; var cur = convSet.TryParse("EUR"); }
public void TryParseNumCodeFail() { var set = new CurrencySet(new[] { _xa, _xb, _xc }); ICurrency c; Assert.IsFalse(set.TryParse("???", out c)); }
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); }