Files
T-DAS/Epost.TestToolsWeb.Tests/Controllers/UnitTest1.cs

37 lines
766 B
C#
Raw Normal View History

2023-01-13 15:30:20 +08:00
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;
2024-11-29 11:19:47 +08:00
using System.Windows.Forms;
2023-01-13 15:30:20 +08:00
namespace Epost.TestToolsWeb.Tests.Controllers
{
[TestClass]
public class UnitTest1
{
OrderBLL bll = new OrderBLL();
[TestMethod]
public void d()
{
2024-11-29 11:19:47 +08:00
string sku = "2509267236248";
if (sku.Substring(0, 1) == "2")
2023-01-13 15:30:20 +08:00
{
2024-11-29 11:19:47 +08:00
if (sku.Length >= 8)
2023-01-13 15:30:20 +08:00
{
2024-11-29 11:19:47 +08:00
sku = sku.Substring(0, 8);
2023-01-13 15:30:20 +08:00
}
2024-11-29 11:19:47 +08:00
2023-01-13 15:30:20 +08:00
}
}
}
}