从山证v2.3.0拷贝
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
namespace YLErp.Modules.DataProviderModule
|
||||
{
|
||||
[TestClass]
|
||||
public class EodPriceProviderTest : YLUnitTestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestInitialize()
|
||||
{
|
||||
var provider1 = new EodPriceProvider(new DateTime(2021, 5, 27)).Initialize();
|
||||
|
||||
var provider2 = new EodPriceProvider(new DateTime(2021, 5, 27)).Initialize(new[] { "" });
|
||||
|
||||
Assert.AreEqual(provider1.Count, provider2.GetEodPriceList().Count());
|
||||
|
||||
var provider3 = new EodPriceProvider(new DateTime(2021, 5, 27)).Initialize(new[] { "RB00", "000300.SH" });
|
||||
|
||||
Assert.AreEqual(provider3.Count, 2);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user