diff --git a/Huobi.Net.UnitTests/HuobiClientTests.cs b/Huobi.Net.UnitTests/HuobiClientTests.cs index 7a814d56..28237fa1 100644 --- a/Huobi.Net.UnitTests/HuobiClientTests.cs +++ b/Huobi.Net.UnitTests/HuobiClientTests.cs @@ -53,24 +53,6 @@ public string SerializeExpected(T data, bool tick) return $"{{\"status\": \"ok\", {(tick ? "tick" : "data")}: {JsonConvert.SerializeObject(data)}}}"; } - [TestCase("BTCUSDT", true)] - [TestCase("NANOUSDT", true)] - [TestCase("NANOBTC", true)] - [TestCase("ETHBTC", true)] - [TestCase("BEETC", true)] - [TestCase("BEEC", true)] - [TestCase("BEC", false)] - [TestCase("NANOUSDTD", true)] - [TestCase("BTC-USDT", false)] - [TestCase("BTC-USD", false)] - public void CheckValidHuobiSymbol(string symbol, bool isValid) - { - if (isValid) - Assert.DoesNotThrow(() => symbol.ValidateHuobiSymbol()); - else - Assert.Throws(typeof(ArgumentException), () => symbol.ValidateHuobiSymbol()); - } - [Test] public void CheckRestInterfaces() { diff --git a/Huobi.Net/ExtensionMethods/HuobiExtensionMethods.cs b/Huobi.Net/ExtensionMethods/HuobiExtensionMethods.cs index 9be0cd2b..609bdfe8 100644 --- a/Huobi.Net/ExtensionMethods/HuobiExtensionMethods.cs +++ b/Huobi.Net/ExtensionMethods/HuobiExtensionMethods.cs @@ -18,8 +18,6 @@ public static string ValidateHuobiSymbol(this string symbolString) if (string.IsNullOrEmpty(symbolString)) throw new ArgumentException("Symbol is not provided"); symbolString = symbolString.ToLower(CultureInfo.InvariantCulture); - if (!Regex.IsMatch(symbolString, "^(([a-z]|[0-9]){4,})$")) - throw new ArgumentException($"{symbolString} is not a valid Huobi symbol. Should be [QuoteAsset][BaseAsset], e.g. ETHBTC"); return symbolString; } }