SqlSugar/Src/Asp.NetCore2/KdbndpTest/OracleDemo/UnitTest/UValidate.cs

20 lines
490 B
C#
Raw Normal View History

2020-11-01 12:37:20 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2024-07-10 21:15:51 +08:00
namespace KdbndpTest.OracleDemo.UnitTest
2020-11-01 12:37:20 +08:00
{
public class UValidate
{
public static void Check(object a, object b, object name)
{
2024-07-10 21:15:51 +08:00
if (a?.ToString()?.Replace(" ", "").Trim().ToLower() != b?.ToString().Replace(" ", "")?.Trim().ToLower())
2020-11-01 12:37:20 +08:00
{
throw new Exception(name + " error");
}
}
}
}