20260831功能同步:
1. 不同车间区分料框查询、料框解绑接口 2. 注释电池型号逻辑 3. 打开电池状况界面
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
using JinYuan.DAL.Models;
|
||||
using JinYuan.DAL.Service;
|
||||
using JinYuan.VirtualDataLibrary;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
|
||||
namespace UnitTestProject
|
||||
{
|
||||
[TestClass]
|
||||
public class UnitTest1
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
{
|
||||
string modelName = "LF350S";
|
||||
string workshopCode = "601";
|
||||
|
||||
short model = CommonMethods.mesConfig.GetModelNum(modelName, workshopCode);
|
||||
|
||||
Assert.IsTrue(model == 11);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethod2()
|
||||
{
|
||||
string modelName = "LF350X";
|
||||
string workshopCode = "601";
|
||||
|
||||
short model = CommonMethods.mesConfig.GetModelNum(modelName, workshopCode);
|
||||
|
||||
Assert.IsTrue(model == 0);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
public void TestMethod3()
|
||||
{
|
||||
string modelName = "LF350S";
|
||||
string workshopCode = "609";
|
||||
|
||||
short model = CommonMethods.mesConfig.GetModelNum(modelName, workshopCode);
|
||||
|
||||
Assert.IsTrue(model == 10);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user