从山证v2.3.0拷贝

This commit is contained in:
吴方海
2024-05-09 14:06:26 +08:00
parent 566ff33259
commit f9d8a256a6
4471 changed files with 1203456 additions and 9 deletions
@@ -0,0 +1,24 @@
using YLErp.Modules.AppModule.UpgradModule;
namespace UnitTestProject.Modules.AppModule
{
[TestClass]
public class DbUpdateTest
{
[TestMethod]
public void TestDbUpdate()
{
var list = DbUpdateService.GetUpdateList();
Assert.IsTrue(list.Any());
var cont = DbUpdateService.GetUpdateContent(list.TakeLast(4).Select(n => n.UpKey));
Assert.IsTrue(!string.IsNullOrEmpty(cont));
var results = DbUpdateService.ExecuteUpdate(list.TakeLast(1).Select(n => n.UpKey).AsEnumerable(), false);
Assert.IsTrue(list.Any());
}
}
}