从山证v2.3.0拷贝
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
namespace YLErp.Modules.UnderlyingModule
|
||||
{
|
||||
[TestClass]
|
||||
public class StockBlackWhiteServiceTest : UnitTestBase
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestCanSetLaunchState()
|
||||
{
|
||||
var str = new StockBlackWhiteService(OptUserInfo.SystemUser).CanSetLaunchState(new[] { 29263 }, "0");
|
||||
|
||||
Assert.IsFalse(string.IsNullOrEmpty(str));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using YLErp.DBModels.Helpers;
|
||||
|
||||
namespace YLErp.Modules.UnderlyingModule
|
||||
{
|
||||
[TestClass]
|
||||
public class VarietyDataTest
|
||||
{
|
||||
[TestMethod]
|
||||
public void Test()
|
||||
{
|
||||
var ts = VarietyHelper.GetTradeUnitSingle("5吨/手");
|
||||
var qs = VarietyHelper.GetQuoteUnitSingle("元(人民币)/500千克");
|
||||
Assert.IsTrue(ts=="吨"&&qs== "吨");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user