public void GetAvailableSymbolCount(SecurityType securityType, string market, bool expectInfinity) { var expected = expectInfinity ? int.MaxValue : SymbolPropertiesDatabase.FromDataFolder().GetSymbolPropertiesList(market, securityType).Count(); Assert.AreEqual(expected, randomValueGenerator.GetAvailableSymbolCount(securityType, market)); }