Example #1
0
        public void Incorrect_url_should_throw_exception(string url)
        {
            EthStatsClient ethClient = new EthStatsClient(url, 5000, null, LimboLogs.Instance);

            Assert.Throws <ArgumentException>(() => ethClient.BuildUrl());
        }
Example #2
0
        public void Build_url_should_return_expected_results(string configUrl, string expectedUrl)
        {
            EthStatsClient ethClient = new EthStatsClient(configUrl, 5000, null, LimboLogs.Instance);

            Assert.AreEqual(expectedUrl, ethClient.BuildUrl());
        }