public void GetGdCurrencyFiat(string code, string expectedCountryCodeStr) { CurrencyFiat currency = CurrencyFiatList.Get(CurrencyFiatCode.FromString(code)); Output.WriteLine($"code: {code}, Received: {currency.Code} is expecting: {expectedCountryCodeStr}"); Assert.Contains(currency.Countries, x => x.Code == expectedCountryCodeStr); }
public void GetAllFlags() { List <CurrencyFiat> currencyFiats = CurrencyFiatList.GetList(); foreach (CurrencyFiat currency in currencyFiats) { string flag = currency.GetFlag(); Output.WriteLine($"Flag for {currency.Code} currency is {flag}"); Assert.False(string.IsNullOrEmpty(flag)); } }