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 showmes = "211100|394892345|938275908324|93875|934725"; if (showmes.Length > 30) { string newstr = showmes.Substring(30, showmes.Length-30); if (newstr.Length > 30) { showmes = showmes.Substring(0, 30) + "\r" + newstr.Substring(0, 30) + "\r" + newstr.Substring(30, newstr.Length-30); } else { showmes = showmes.Substring(0, 30) + "\r" + newstr; } } } } }