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); } } }