예제 #1
0
        private async Task TestCurrencies(IExchangeAPI api)
        {
            if (FunctionRegex == null || Regex.IsMatch("currencies", FunctionRegex, RegexOptions.IgnoreCase))
            {
                try
                {
                    Console.Write("Test {0} GetCurrenciesAsync... ", api.Name);
                    var currencies = await api.GetCurrenciesAsync();

                    Assert(currencies.Count != 0);
                    Console.WriteLine($"OK ({currencies.Count} currencies)");
                }
                catch (NotImplementedException)
                {
                    Console.WriteLine("Not implemented");
                }
            }
        }