mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-29 11:36:32 +08:00
28 lines
750 B
C#
28 lines
750 B
C#
using Util.Datas.Sql.Builders.Conditions;
|
|
using Xunit;
|
|
|
|
namespace Util.Datas.Tests.Sql.Builders.SqlServer.Conditions {
|
|
/// <summary>
|
|
/// Is Null查询条件测试
|
|
/// </summary>
|
|
public class IsNullConditionTest {
|
|
/// <summary>
|
|
/// 获取条件
|
|
/// </summary>
|
|
[Fact]
|
|
public void Test_1() {
|
|
var condition = new IsNullCondition( "Email" );
|
|
Assert.Equal( "Email Is Null", condition.GetCondition() );
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取条件 - 验证列为空
|
|
/// </summary>
|
|
[Fact]
|
|
public void Test_2() {
|
|
var condition = new IsNullCondition( "" );
|
|
Assert.Null( condition.GetCondition() );
|
|
}
|
|
}
|
|
}
|