添加项目文件。
This commit is contained in:
32
Epost.TestToolsWeb.Tests/Controllers/UnitTest1.cs
Normal file
32
Epost.TestToolsWeb.Tests/Controllers/UnitTest1.cs
Normal file
@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using Epost.BLL;
|
||||
using Epost.Model;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Epost.DAL.Cache;
|
||||
using Epost.Common;
|
||||
using System.Web.Helpers;
|
||||
using System.Data;
|
||||
using System.Configuration;
|
||||
|
||||
namespace Epost.TestToolsWeb.Tests.Controllers
|
||||
{
|
||||
[TestClass]
|
||||
public class UnitTest1
|
||||
{
|
||||
OrderBLL bll = new OrderBLL();
|
||||
[TestMethod]
|
||||
public void d()
|
||||
{
|
||||
string sku = "211100";
|
||||
if (sku.Substring(0, 1) == "2" && sku.Substring(1, 1) != "5")
|
||||
{
|
||||
if (sku.Length >= 7)
|
||||
{
|
||||
sku = sku.Substring(1, 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user