解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头
authored at
2018-05-15 21:21:05
X
using NewLife.Data;
using NewLife.Security;
using Xunit;
namespace XUnitTest.Security
{
public class RandTests
{
[Fact]
public void Fill()
{
var area = new GeoArea();
Rand.Fill(area);
Assert.True(area.Code > 0);
Assert.NotEmpty(area.Name);
}
}
}
|